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
Fork of el17ajf by
Diff: Grid/Grid.h
- Revision:
- 8:5066ce13a430
- Parent:
- 7:2e37bad816cb
- Child:
- 9:3a7776a29a11
--- a/Grid/Grid.h Fri Mar 15 07:55:23 2019 +0000 +++ b/Grid/Grid.h Fri Mar 15 16:39:06 2019 +0000 @@ -6,13 +6,14 @@ void placeTetromino(Tetromino tetromino); void clear(); void draw(); + Grid(); private: void checkForLines(); void moveDownIfNeeded(); void shiftDownFrom(int row); - static const int HEIGHT = 20; - static const int WIDTH = 10; + const static int HEIGHT = 20; + const static int WIDTH = 10; bool grid[WIDTH][HEIGHT]; bool isSpaceForBlock(Block block); }; \ No newline at end of file