import math import random # Игра со случайным игроком fNames = ["Alice" , "Mark" , "John" , "Victor"] sNames = ["Sancez" , "Iglesias" , "Wolf"] diffc = [ { "damage" : 10 , "name" : "easy"}, { "damage" : 15 , "name" : "normal"}, { "damage" : 30 , "name" : "hard"} ] class TOOLS: i = 12345 def get(self , name): return name**2 tool = TOOLS() x = fNames[random.randint(0,len(fNames)-1)] y = sNames[random.randint(0,len(sNames)-1)] z = random.randint(18,45) print("Hello , I'm" , x,y,"and me" , z , "ages ") num = random.randint(0,len(diffc)-1) diff = diffc[num]["damage"] difName = diffc[num]["name"] print(diff) print(difName) healt = 100 - ((z - 18)/27)*diff print( "Healt %.2f" % healt)
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more