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:
- 7:2e37bad816cb
- Parent:
- 5:3efbdcb3efaf
- Child:
- 8:5066ce13a430
--- a/Grid/Grid.h Thu Mar 14 12:08:10 2019 +0000 +++ b/Grid/Grid.h Fri Mar 15 07:55:23 2019 +0000 @@ -6,11 +6,13 @@ void placeTetromino(Tetromino tetromino); void clear(); void draw(); + private: + void checkForLines(); void moveDownIfNeeded(); void shiftDownFrom(int row); - const int HEIGHT = 20; - const int WIDTH = 10; - bool * grid;// = new bool[width][height]; + static const int HEIGHT = 20; + static const int WIDTH = 10; + bool grid[WIDTH][HEIGHT]; bool isSpaceForBlock(Block block); }; \ No newline at end of file