Follow Me - 2 player
John Tyner
Ka Ming Lo
User's Manual
-------------
Note: Instructions assume that the game has been properly supplied
with necessary power.
1. Press the reset button to start a new game (button in upper right
hand corner)
2. The LCD (upper left) will prompt the user(s) to press a button.
Any button *other than the reset button* needs to be pressed at
this point.
3. The LCD will then display "Ready...", "Set...", "Go!" and then turn
on one of the four LED's (upper right).
4. The game will wait for approximately 3 seconds for one of the two
players to press their corresponding button. (A countdown will be
displayed on the LCD.)
The person who presses the correct button first will get one point,
and the current score is printed on the LCD.
If the wrong button is pressed, the player who pressed the button will
lose a point, and the current score is printed on the LCD.
If no button is pressed, the current score is printed on the LCD.
See instruction 3.
Note: Each round allows for only one button to be pressed. A new round
will start after a button is pressed (by either player) whether
it is correct or incorrect.
5. Play ends when one of the two players reaches 10 points. A win message
will be displayed on the LCD. See instruction 1.
Implementation
--------------
Our final project is a game called "Follow Me" for two players. The game
proceeds in the following fashion. Each player has 4 buttons that each
correspond to one of the four LED's on the board. During each round of
play, the controller turns one of the LED's on. The game waits for
approximately 3 seconds before starting a new round. During that time, the
controller checks to see which button (if any) was pressed. At the end of
the delay or when a button is pressed, the controller determines which
action to take. Adding a point to the user who pressed the correct button,
subtracting a point from the user who pressed an incorrect button, or doing
nothing for either player. Play ends when one player reaches 10 points.
The game is run by the software on the 8051. Here is the basic format:
1. Determine a random seed by waiting for the user to press a button.
2. Print Ready..., Set..., Go! on the LCD.
3. Randomly choose an LED for the current round.
4. Turn on that LED.
5. Determine if a button has been pressed. (Occurs *during* steps 5-9)
a. (if pressed) Go to step 10.
b. (if not pressed) Go to step 6.
6. Print out current time left for user(s) to press a button.
7. Delay.
8. Decrement counter, and go to step 5.
9. Turn LED's off
10. Determine if a button was pressed.
a. (if no button) Print score, delay, and return to step 2.
b. (if button) Go to step 11.
11. Determine if the correct button was pressed.
a. (if correct button) Add a point to the correct player
b. (if incorrect button) Subtract a point from the correct player
12. Determine if one of the players has won the game (reached 10 points).
a. (if winner) Determine which player won, print appropriate win
message, and go to step 14.
b. (if no winner) Print score and go to step 2.
13. Wait for reset.