[Tutor] Rock, Paper, Scissors
Alan Gauld
alan.gauld at freenet.co.uk
Tue Aug 8 19:00:53 CEST 2006
> This looks like a fun project to work on. From
> reading the description, I feel this would be pretty
> straight forward game to program. However, I have no
> idea how the computer would decide if it wanted a
> rock, paper, or a pair of scissors. Any hints?
Assign a value to rock, paper and scissors.
then use the random module to generate one of the 3 values at random.
Alan G.
More information about the Tutor
mailing list