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.cpp
- Revision:
- 34:d9099874bbc3
- Parent:
- 32:1bc731f03a30
- Child:
- 35:dc957021982c
--- a/Cricket/Cricket.cpp Wed May 08 13:30:12 2019 +0000 +++ b/Cricket/Cricket.cpp Thu May 09 10:17:13 2019 +0000 @@ -187,9 +187,7 @@ if(direction_set==1 && checkHit==1){ //if direction is set and ball is hit game continues // checks if there is a fielder present in the direction of ball hit if (fielder_check!=-1){ - /*updates the position of the ball according the to direction and placement of the fielder - returns 1 once ball has reached fielder */ - int _check_update=_ball.update_ball(field[fielder_check].x,field[fielder_check].y); + int _check_update=_ball.update_ball(field[fielder_check].x,field[fielder_check].y); //checks for position of ball //printf("Location x %i y %i\n",field[fielder_check].x,field[fielder_check].y);