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:
- 29:d59fbe128d1f
- Parent:
- 19:370d83a8dc33
- Child:
- 36:c854f1f51f43
--- a/Grid/Grid.h Fri Apr 12 20:53:00 2019 +0000
+++ b/Grid/Grid.h Sat Apr 13 08:33:49 2019 +0000
@@ -10,14 +10,15 @@
void clear();
void draw();
Grid();
- const static int GRID_HEIGHT = 20;
+ const static int HIDDEN_HEIGHT = 4;
+ const static int GRID_HEIGHT = 24;
const static int GRID_WIDTH = 10;
private:
int checkForLines();
void moveDownIfNeeded();
void shiftDownFrom(int row);
- bool grid[10][20];
+ bool grid[GRID_WIDTH][GRID_HEIGHT];
bool isSpaceForBlock(Block block);
};
#endif
\ No newline at end of file
