Skip to content

Latest commit

 

History

128 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warbound 🏹⚔️

"If you know the enemy and know yourself, you need not fear the results of a hundred battles." -Sun Tzu

Introduction

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.

About the Game

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.

Objective

The victory condition is to defeat the enemy by either eliminating their general or destroying their entire army.

Preview

Warbound

How to run the game

  1. Clone the repository:

    git clone https://github.com/arthurabello/trabalho_lp_A1.git
    cd trabalho_lp_A1
  2. Create and activate a virtual environment (recommended):

    python3 -m venv venv
    source venv/bin/activate 
  3. Install the dependencies:

    pip install -r requirements.txt
  4. Run the game::

    cd src
    python3 main.py
    

Unit Tests

We used unittest to test our scripts and ensure their functionality. To run the tests:

  1. Navigate to the tests directory:
cd tests
  1. Run the tests for each script:
python3 -m unittest test_graph.py
...

Developers

This game was developed by:

License

The game is licensed under the GNU License.

About

Game developed for fun and for EMAp's second semester course on Applied Mathematics Undergraduate Program: Programming Languages

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages