Anonymous user
Rock-paper-scissors: Difference between revisions
m
→{{header|Python}}
(→{{header|REXX}}: added extended version, made computer's choices more idiomatic.) |
|||
Line 3,300:
elif rules[human] == computer: # if what beats the human's choice is the computer's choice...
print('the computer beat you... :(')
else: print("it's a tie!")
else: print("that's not a valid choice")</lang>
|