Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import simplegui
- import random
- def rock():
- computer = random.randint(1,3)
- print computer
- if computer == 1:
- print "tie"
- elif computer == 2:
- print "you lose"
- elif computer == 3:
- print "you win"
- def paper():
- frame = simplegui.create_frame(astro,200,200)
- frame.add_button(rock,rock,100)
- frame.add_button(paper,paper,100)
- frame.add_button(scissors,scissors,100)
- frame.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement