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: Food/Food.cpp
- Revision:
- 4:a9634970d33e
- Parent:
- 3:50f01159c61d
- Child:
- 5:27fcb9b36e7e
--- a/Food/Food.cpp Tue Mar 06 11:54:28 2018 +0000 +++ b/Food/Food.cpp Wed Mar 07 15:01:35 2018 +0000 @@ -18,12 +18,12 @@ return p; } -void Food::set_postion(Position p) +void Food::set_position(Position p) { srand(time(NULL)); - _x = rand() % 4; - _y = rand() % 8; + _x = rand() % 84; + _y = rand() % 48; _x = p.x; _y = p.y;