A clone of the old arcade game Rampart. Up to four players build castle walls, place cannons inside these walls, and attack their enemies. If a player cannot build a complete wall around one of his castles, he loses. The last surviving player wins.
The game can be played by two people at the same computer or with up to 4 players of the network.
Install with uv:
uv tool install git+https://github.com/karlb/castle-combat.gitThen start the game with castle-combat.
To run it once without installing:
uvx --from git+https://github.com/karlb/castle-combat.git castle-combatIf you would rather use pipx, it can install from the repository too, as long as the Python it runs on is 3.10 or newer:
pipx install git+https://github.com/karlb/castle-combat.gitand to run it once:
pipx run --spec git+https://github.com/karlb/castle-combat.git castle-combatgit clone git@github.com:karlb/castle-combat.git
cd castle-combat
uv run castle-combatRun the tests with uv run pytest, and the linter and formatter with
uv run ruff check and uv run ruff format.
Git settings are not shared by cloning, so enable these once per checkout:
# reject commits whose staged Python files fail ruff
git config core.hooksPath .githooks
# keep `git blame` off the bulk reformatting commit
git config blame.ignoreRevsFile .git-blame-ignore-revsPlease report bugs at https://github.com/karlb/castle-combat/issues.
Karl Bartel karl@karl.berlin