summaryrefslogtreecommitdiffstats
path: root/grid.h
diff options
context:
space:
mode:
Diffstat (limited to 'grid.h')
-rw-r--r--grid.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/grid.h b/grid.h
index d2a066b..db87a39 100644
--- a/grid.h
+++ b/grid.h
@@ -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