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.
Diff: Snek/Snek.cpp
- Revision:
- 12:d3eef5ea3f43
- Parent:
- 7:c1e0593bfc99
- Child:
- 15:130900e5c268
--- a/Snek/Snek.cpp Mon May 07 00:10:25 2018 +0000 +++ b/Snek/Snek.cpp Mon May 07 18:06:50 2018 +0000 @@ -13,6 +13,9 @@ void Snek::init(int x, int y) { + memset(_x, 0, sizeof(_x)); + memset(_y, 0, sizeof(_y)); + //Inital values for variables _length = 3;