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:
- 19:370d83a8dc33
- Parent:
- 18:24ce897024d0
- Child:
- 29:d59fbe128d1f
--- a/Grid/Grid.h Wed Apr 03 14:31:49 2019 +0000
+++ b/Grid/Grid.h Wed Apr 03 16:18:26 2019 +0000
@@ -6,7 +6,7 @@
class Grid {
public:
bool isSpaceForTetromino(Tetromino tetromino);
- void placeTetromino(Tetromino tetromino);
+ int placeTetromino(Tetromino tetromino);
void clear();
void draw();
Grid();
@@ -14,7 +14,7 @@
const static int GRID_WIDTH = 10;
private:
- void checkForLines();
+ int checkForLines();
void moveDownIfNeeded();
void shiftDownFrom(int row);
bool grid[10][20];
