Finished the game
Dependencies: mbed
Welcome to Snake
See that the LCD is on and press start to play
The snake is in the middle of the screen, move the analogue up, down, right, left to move the snake in those directions. Note that snake doesn't travel diagonally.
Move the snake to get as much food as possible, there is plenty of food as you will find out
Beware, snake will die if you run its head into the walls, or into its body
Take care to keep moving snake fast, its body will catch up with its head and cause it to die!!!!!!
Have fun, and get that snake as long as possible :)
Diff: main.cpp
- Revision:
- 12:d16d154af362
- Parent:
- 11:c77c90ed0ad8
diff -r c77c90ed0ad8 -r d16d154af362 main.cpp --- a/main.cpp Fri Jun 05 12:51:30 2020 +0000 +++ b/main.cpp Fri Jun 05 21:21:49 2020 +0000 @@ -33,7 +33,7 @@ // function int main() { - #ifdef WITH_TESTING +#ifdef WITH_TESTING //int number_of_failures = run_all_tests(); //if(number_of_failures > 0) return number_of_failures; @@ -87,7 +87,7 @@ void welcome() { lcd.printString("----SNAKE---O",0,1); - lcd.printString(" PRESS START ",0,4); // instruction to the user + lcd.printString(" HOLD START ",0,4); // instruction to the user lcd.refresh(); // wait flashing LEDs until start button is pressed