Skip to content

Latest commit

 

History

History
75 lines (55 loc) · 1.64 KB

README.md

File metadata and controls

75 lines (55 loc) · 1.64 KB

Assignment 3.1

  • Everything mentioned in the assignment has been implemented.

  • Bonus :

    • King’s Leviathan Axe has also been implemented.
    • Dragon Character has been added, it can fly over walls.
    • Queen's Eagle Arrow has been added.
    • Movement avoiding walls has also been implemented.
  • To run the game : python3 game.py

  • To view replays : python3 replay.py and select the replay you want to watch according to mentioned date and time.

  • For Victory : All buildings apart from walls get destroyed from the map in all three levels.

  • For Defeat : If all troops and King die before destroying all buildings apart from walls.

Controls :

Hero :

  • w : move up
  • a : move left
  • d : move right
  • s : move down
  • 1 : Special Attack
  • space : Normal Attack

Barbarian :

  • z : spawn at point 1
  • x : spawn at point 2
  • c : spawn at point 3

Dragon :

  • v : spawn at point 1
  • b : spawn at point 2
  • n : spawn at point 3

Archer :

  • i : spawn at point 1
  • o : spawn at point 2
  • p : spawn at point 3

StealthArcher

  • 2 : spawn at point 1
  • 3 : spawn at point 2
  • 4 : spawn at point 3

Balloon :

  • j : spawn at point 1
  • k : spawn at point 2
  • l : spawn at point 3

Healer

  • 8 : spawn at point 1
  • 9 : spawn at point 2
  • 0 : spawn at point 3

q : Quit Game

Assumptions :

  • Rage and Heal Spell can be applied multiple times.
  • The limit for troops in each level is as follows :
    • Barbarians : 10
    • Archers : 7
    • Balloon : 5
    • Dragon : 3
    • StealthArcher : 10
    • Healer : 3
  • You have to choose the type of troop movement at start of the game.
  • You have to choose the hero after each level.