TkTactics is a single-player, turn-based strategy board game. You command the blue army, battling against ever-growing waves of red enemy forces controlled by the computer. With each wave, the enemy grows stronger and more aggressive - can you hold the line and lead your troops to victory?
OS: Linux or Windows
Python: Version 3.12 or higher
git clone https://github.com/Yang-Wei-Ting/TkTactics.git
cd TkTactics/
python sources/play.py
Each unit has a health bar. When a unit’s health reaches zero, it is destroyed.
There are four types of soldier units, each with its own strengths and weaknesses:
High defense
Moderate attack range
Strong against: Cavalries
Weak against: Archers, Heroes
High attack range
Weak attack
Strong against: Infantries
Weak against: Cavalries, Heroes
High mobility
Strong against: Archers
Weak against: Infantries, Heroes
High attack, health, and mobility
Strong against: All other soldier unit types
Press a unit to select it.
Light blue squares: Available movements
Red diamond-shaped marker: Attack range
Move: Drag the unit onto a light blue square and release.
Rock and tree tiles require a unit's full mobility for the turn.
All other tile types cost one mobility point.
Attack: Drag the unit onto an enemy within attack range and release.
After moving and attacking, a unit turns gray - indicating it can no longer perform any actions until the next turn.
Units automatically heal between enemy waves.
Press an enemy unit to view its attack range and mobility.
Units gain experience by attacking enemies.
When enough experience is earned, a unit automatically levels up and becomes stronger.
The unit’s level is shown in the upper-left corner of its icon.
Currently, there is one type of building units:
Used to recruit new soldier units.
Earn coins by surviving each enemy wave.
Spend coins at building units to recruit new soldier units.
How to recruit:
Click a building unit to open the production panel on the right.
Click a soldier unit to recruit - blue means you can afford it; gray means you can’t.
Click one of the highlighted light blue squares to deploy the unit.
The new unit will become active on your next turn.
| Title | Author | Source | License |
|---|---|---|---|
| Overworld - Grass Biome | Beast | opengameart.org | CC0 1.0 |
| Camping Tent Icon | Delapouite | game-icons.net | CC BY 3.0 |
| Horse Face Silhouette Right Side View Variant | SVG Repo | svgrepo.com | CC0 1.0 |








