Skip to content

Repository files navigation

Castle-Combat

Summary

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.

Installation

Install with uv:

uv tool install git+https://github.com/karlb/castle-combat.git

Then start the game with castle-combat.

To run it once without installing:

uvx --from git+https://github.com/karlb/castle-combat.git castle-combat

If 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.git

and to run it once:

pipx run --spec git+https://github.com/karlb/castle-combat.git castle-combat

Development

git clone git@github.com:karlb/castle-combat.git
cd castle-combat
uv run castle-combat

Run 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-revs

Support

Please report bugs at https://github.com/karlb/castle-combat/issues.

Author

Karl Bartel karl@karl.berlin

About

A clone of the old arcade game Rampart. Multiplayer on one computer or via network.

Topics

Resources

Stars

18 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages