UMBC CMSC 201 Spring '00 | CSEE | 201 | 201 S'00 | lectures | news | help |
The objective of this assignment is to give you practice with top-down design and writing functions. You will also write a sophisticated user interface and use the random number generator
In the old children's game called Rock-Paper-Scissors, each child puts his hand behind his back. One child counts to 3. At the count of 3, each child brings his hand forward. His hand is held to form the shape of a rock (a fist), a piece of paper (held open and flat) or a pair of scissors (index and middle finger wide apart). In this game the winner is determined by the following rules. If both children's hands are the same, it a tie.
Rock breaks Scissors Paper covers Rock Scissors cut Paper |
Your assignment is to write a program that simulates playing Rock-Paper-Scissors. The user will be one player and your program ("the system") will be the other player. After an appropriate greeting, your program will prompt the user for a random number "seed" value, then display the following menu:
Although your output need not be identical to the above, all information (including the greeting) must be present.
Your C source code file for this project MUST be called
proj2.c.
To submit your project, type the following at the Unix prompt.
Note that the project name starts with uppercase 'P'.
submit cs201 Proj2 proj2.c
To verify that your project was submitted, you can execute the following command at the Unix prompt. It will show all files that you submitted in a format similar to the Unix 'ls' command.
submitls cs201 Proj2
Tuesday, 22-Feb-2000 15:15:50 EST