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: move/Move.h
- Revision:
- 2:c7976a633ba0
- Parent:
- 1:538386e72e40
- Child:
- 3:ccbda43c2124
--- a/move/Move.h Wed May 08 22:10:38 2019 +0000 +++ b/move/Move.h Wed May 08 22:17:34 2019 +0000 @@ -11,16 +11,18 @@ @date 8th May 2019 */ - +/** Snakebody struct */ struct SnakeBody{ - char _xx[4000]; - char _yy[4000]; - char _dir; + char _xx[4000];/**< char for x coordinate for each bit of snake body*/ + char _yy[4000];/**< char for x coordinate for each bit of snake body*/ + char _dir;/**< char for direction of snake hesd*/ }; + +/** Food struct */ struct Food{ - char a; - char b; + char a;/**< char for x coordinate for food position*/ + char b;/**< char for y coordinate for food position*/ };