"If you know the enemy and know yourself, you need not fear the results of a hundred battles." -Sun Tzu
Warbound is a turn-based strategy game, developed with Python and Pygame. The main purpose of this is to simulate how ancient battles would have been fought, strategically and tactically. The player is induced to think as a general, and make strategic decisions to avoid failing in battle.
In Warbound, players control armies with diverse unit types including infantry, cavalry, and archers. Each player chooses a historical general with unique abilities before the battle begins. The game's core mechanics involve:
- Strategic unit movement (source)
- Tactical formations (source)
- Unit orientation on the battlefield (source)
- Army management (source)
- Terrain-based advantages (source)
- Unit-specific combat abilities (source)
- General-specific advantages (and disadvantages) (source)
- Realistic combat mechanics, with a probabilistic system (source)
The game includes a comprehensive in-game tutorial for new players.
The victory condition is to defeat the enemy by either eliminating their general or destroying their entire army.
-
Clone the repository:
git clone https://github.com/arthurabello/trabalho_lp_A1.git cd trabalho_lp_A1 -
Create and activate a virtual environment (recommended):
python3 -m venv venv source venv/bin/activate -
Install the dependencies:
pip install -r requirements.txt
-
Run the game::
cd src python3 main.py
We used unittest to test our scripts and ensure their functionality. To run the tests:
- Navigate to the tests directory:
cd tests- Run the tests for each script:
python3 -m unittest test_graph.py
...This game was developed by:
The game is licensed under the GNU License.
