im currently working on a simple text adventure in python. basically i want the randint to choose 1 or 2 then assign to right_wire, then raw_input to be wire_choice, then the 2 are matched to deliver the desired outcome. Im sure you guys can figure out what im trying to do here anyway. am i close here or really way off? Thanks!
right_wire = randint(1, 2)
wrong_wire = 0
if right_wire == 1:
wrong_wire = 2
elif right_wire == 2:
wrong_wire = 1
else:
print "ERROR"
while True:
print "Which wire do you pull?"
print
print "1. The red one."
print "2. The blue one."
print
wire_choice = raw_input('*>>*')
if wire_choice == 1 and right_wire == 1:
print "**BOMB DEFUSED**"
return 'engineering2'
elif wire_choice == 2 and right_wire == 2:
print "**BOMB DEFUSED**"
return 'engineering2'
elif wire_choice == 1 and right_wire == 2:
print "**FAILED**"
return 'death'
elif wire_choice == 2 and right_wire ==1:
print "**FAILED**"
return 'death'
else:
print no_understand