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
Diff: Cricket/Cricket.h
- Revision:
- 18:a260ce8db9e7
- Parent:
- 15:81a3aaf52647
- Child:
- 19:e1ded5acb64a
--- a/Cricket/Cricket.h Wed Apr 24 21:17:22 2019 +0000 +++ b/Cricket/Cricket.h Sat Apr 27 15:42:36 2019 +0000 @@ -28,10 +28,12 @@ void play_game(N5110 &lcd,Gamepad &pad); void update_scoreboard(int checkUpdate, int runs,Gamepad &pad); void batsman_out(string messsage,Gamepad &pad); + void check_victory(N5110 &lcd); void game(N5110 &lcd,Gamepad &pad); void init_positions(); void reset(); int check_fielder(Direction dir); + void check_ball_count(N5110 &lcd); private: Ball ball; Bat bat; @@ -63,6 +65,8 @@ int fielder_no; int ballHit; int check_hit; + int _ball_limit; + int new_game; int check_update; int loft_check; int d;