-
Notifications
You must be signed in to change notification settings - Fork 108
/
vikingsClasses.py
60 lines (38 loc) · 986 Bytes
/
vikingsClasses.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import random
# Soldier
class Soldier:
def __init__(self, health, strength):
# your code here
def attack(self):
# your code here
def receiveDamage(self, damage):
# your code here
# Viking
class Viking(Soldier):
def __init__(self, name, health, strength):
# your code here
def battleCry(self):
# your code here
def receiveDamage(self, damage):
# your code here
# Saxon
class Saxon(Soldier):
def __init__(self, health, strength):
# your code here
def receiveDamage(self, damage):
# your code here
# Davicente
class War():
def __init__(self):
# your code here
def addViking(self, viking):
# your code here
def addSaxon(self, saxon):
# your code here
def vikingAttack(self):
# your code here
def saxonAttack(self):
# your code here
def showStatus(self):
# your code here
pass