ELEC2645 (2018/19) / Mbed 2 deprecated el17ajf

Dependencies:   mbed

Fork of el17ajf by Angus Findlay

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