diff options
Diffstat (limited to 'grid.h')
-rw-r--r-- | grid.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,11 +1,11 @@ #ifndef _GRID_H_ #define _GRID_H_ -#include "piece.h" #include <cstdio> #include <iostream> #include <string> #include <vector> +#include "piece.h" using std::string; using std::cout; @@ -18,7 +18,7 @@ class Grid int rows; int cols; int numOfMoves; - int lastMoved; + int lastMoved; /* 0 = left, 1 = right, 2 = up, 3 = down */ int lastMoveDir; vector<Piece> pieces; vector<string> moves; @@ -39,6 +39,9 @@ class Grid void addMove(string); void markPiecesPos(void); + void setlastMoved(int); + int getlastMoved(void); + void printMoves(void); }; #endif |