Commit 022c4fc8 by BellCodeEditor

save project

parent 88e2b178
Showing with 13 additions and 4 deletions
player = input("what to throw:") player = input("what to throw(rock, paper, scissor): ")
print("Player;" + player) print("Player;" + player)
import random import random
list=["rock","paper,""scissor"] list=["rock","paper","scissor"]
computer=random.choice(list) computer=random.choice(list)
print(computer) print("AI: "+computer)
\ No newline at end of file if player in list:
if player == computer:
print("tie")
elif (player=="rock" and computer=="scissor") or (player=="scissor" and computer=="paper") or (player=="paper" and computer=="rock"):
print("congrats, you won")
else:
print("I am sorry, but you lost")
else:
print("you suck at write go study harder")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment