/ClanAttack

A python-based CLI game inspired by the famous Clash of Clans game

Primary LanguagePython

ClanAttack

Installation

Installing required libraries

pip install -r requirements.txt

Run the game

python game.py

Watch a replay

python replay.py id

Where id is a number (0, 1, 2, ...)

Controls

j k Choose character to play (Vim style).

Enter To select the character

123 - Controls the spawning of barbarians

456 - Controls the spawning of archers

789 - Controls the spawning of balloons

wasd - Controls the player

Space - Player attack x - Ultimate attack (Queen only)

r - Use rage spell h - Use heal spell

p - To proceed to next level (For testing / evaluation)

c - Stop the game and save (You have to press c to save)

Symbols

K - King (1 x 1) (Range = 5)

Q - Queen (1 x 1) (Range = 8)

! - Barbarian (1 x 1)

> - Archer (1 x 1) (Range = 8)

B - Balloon (1 x 1)

X - Spawn Point (1 x 1)

$ - Townhall grid (4 x 3)

^ - Hut grid (2 x 2)

# - Wall (1 x 1)

Y - Cannon (1 x 1) (Range = 7)

W - Wizard (1 x 1) (Range = 7)

Audio effects has also been implemented for multiple actions, such as

  • King, Queen attack
  • Barbarian, Archer, Balloon attack
  • Cannon, Wizard tower attack
  • Rage, Heal spell