If i'm not very clear let my explain I have this code -
health = {
'Health': 10,
'Enemy Health': 3
}
import random
variable = random.choice([1 , 2 , 1])
print "Attack/Flee"
turn1 = True
turn2 = False
while turn1:
A = raw_input()
if A == "Attack" or "attack":
print health['Enemy Health'] - variable
what i'm trying to achieve is a turn based attack system, when the player attacks the variable actually changes. like this
Attack/Flee
1
Attack/flee
0
Attack/flee
-2
I'm trying to make this turn based as well so the enemy can also attack