Commit d57e0a32 by BellCodeEditor

save project

parent d6c81a0f
Showing with 23 additions and 0 deletions
class country:
def __init__(self,name,hp,attack):
self.level=1
self.name=name
self.hp=hp
self.attack=attack
ger=country("German Reich",350,50)
sov=country("Soviet Union",600,20)
print(ger.hp)
print(sov.hp)
def gerupgrade():
ger.level+=1
ger.hp+=30
ger.attack+=12
def sovupgrade():
sov.level+=1
sov.hp+=45
sov.attack+=6
if sov.level=10:
sov.level+=1
sov.hp-=20
sov.attack+=100
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment