Rock, Paper, Siccors
A downloadable game
import random
moves = ['r', 'p', 's']
playerWins = ['pr', 'sp', 'rs']
print("Press key r to play rock.Press key s to play siccors.Press key p to play paper.")
while True :
playerMoves = input("Your move:")
if playerMoves == 'q':
break
computerMove = random.choice(moves)
print("You:", playerMoves)
print("Computer:", computerMove)
if playerMoves == computerMove :
print("Tie")
else:
if playerMoves + computerMove in playerWins :
print("You win")
else :
print("You lose")
Status | Released |
Author | yuheng1234567890 |