pascal programming question computer game
Posted on 1999-11-17
my mum saids that i need to learn programming, so i started an evening course but the teacher is not very good. i cant understand him.i am trying to work out a problem in my exercise book THIS IS NOT HOMEWORK. it involves random numbers please help me with this.
I want to write a computer game called paper, sissors. stone.
the computer picks a random one of paper, sissors, or stone without telling the user which it has chosen. asks the user one of these by entering a suitable number. The winner is decided as follows
paper beats stone (because paper wraps stone)
Scissors beats paper (because scissors cuts paper)
Stone beats scissors (because stone blunts scissors)
The user has to enter a number that the program puts on the screen for example 1=paper,2 =scissors 3=stone
If both chose the same, it's a draw. After each round the computer declares who has won and why, and offers the user another round. if the user does not want to play again the computer displays the final score of the games played, won, lost and drawn together with a 'goodbye' message.
I WOULD VERY MUCH APPRECIATE YOUR HELP IN SOLVING THIS PROBLEM