Week 12 Code

Start here: jumpto.cc/rps-go


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)


if chosen == 1:

  computer = 'r'


elif chosen == 2:

  computer = 'p'


  computer = 's'


# 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.