Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed FXOS8700CQ mbed-rtos
Diff: Game_two/Game_two.cpp
- Revision:
- 15:a65444eb1194
- Parent:
- 14:abe64fe0b6a5
- Child:
- 19:903d67bb0dea
--- a/Game_two/Game_two.cpp Thu Apr 18 04:53:04 2019 +0000
+++ b/Game_two/Game_two.cpp Sat Apr 20 11:53:09 2019 +0000
@@ -363,19 +363,6 @@
_type = rand() % 8; // randomise type
}
-}
-
-int Game_two::print_scores(N5110 &lcd)
-{
- // get scores from paddles
- int p1_score = _p1.get_score();
- int total = get_count();
-
- // print to LCD i
- char buffer1[14];
- sprintf(buffer1,"%2d / %2d",p1_score, total);
- lcd.printString(buffer1,WIDTH/2 - 20,1); // font is 8 wide, so leave 4 pixel gape from middle assuming two digits
- return p1_score;
}*/
void Game_two::set_count(int count)