python3 game.py
- 1 King or 1 Queen
- 5 Barbarian
- 5 Archer
- 3 Balloon
Troop Name | Spawn 1 (0,12) | Spawn (15,0) | Spawn 3 (39,12) |
---|---|---|---|
King | J |
K |
L |
Queen | J |
K |
L |
Barbarian | I |
O |
P |
Archer | T |
Y |
U |
Balloon | Z |
X |
C |
Troop Name | UP | DOWN | LEFT | RIGHT |
---|---|---|---|---|
King | W |
A |
S |
D |
Queen | W |
A |
S |
D |
Troop Name | Attack |
---|---|
King | SpaceBar |
Queen | SpaceBar |
m
Double movement speed and attack power for all troops 12 Timeperiodn
1.5 Times health for all troops
python3 replay.py <file_name from ./replays>
- Inheritance is a way to create a new class from an existing class.
- Inheritance used in the project is in './src/attackers/'
class attackers:
.
.
.
class king(attackers):
.
.
.
-
Polymorphism is the ability of an object/function to take on many forms.
-
Example : There is universal display() function for
attackers
,but it can be overriden byBarbarian
display() function, when called for Barbarian.
- Encapsulation is having classes objects
- Example ,
Kings
andBarbarians
are classes
- Classes having their function
King
hasattack()
function