Week 12 Code

Start here: jumpto.cc/rps-go

 #!/bin/python3


from random import randint


#player choice

player = input('rock (r), paper (p) or scissors (s)?')


print(player, 'vs', end=' ')


# Computer choice

chosen = randint(1,3)

#print(chosen)


if chosen == 1:

  computer = 'r'

  

elif chosen == 2:

  computer = 'p'


else: 

  computer = 's'


print(computer)


# Now teach the computer how to tell us who is the winner

# Now make a new game for fire, grass and water or Bulbasaur, Charmander, Squirtle or something similar.