summaryrefslogtreecommitdiffstats
path: root/GameField.hpp
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-02-19 18:49:55 +0000
committerJoursoir <chat@joursoir.net>2021-02-19 18:49:55 +0000
commit0f2504aaa684d53bb30a6d3c152e35f9dfe6e47e (patch)
treeee3163ae1ec48b626a63eed50025c7de63196bc0 /GameField.hpp
parentf8ef01b479ffac6e4432970ca4c471635dc2b120 (diff)
downloadlp-gomoku-0f2504aaa684d53bb30a6d3c152e35f9dfe6e47e.tar.gz
lp-gomoku-0f2504aaa684d53bb30a6d3c152e35f9dfe6e47e.tar.bz2
lp-gomoku-0f2504aaa684d53bb30a6d3c152e35f9dfe6e47e.zip
fix rows and cols typos
Diffstat (limited to 'GameField.hpp')
-rw-r--r--GameField.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/GameField.hpp b/GameField.hpp
index de5ccd1..00a2764 100644
--- a/GameField.hpp
+++ b/GameField.hpp
@@ -12,7 +12,7 @@ enum states {
class GameField {
// optional:
int **field;
- int cols, rows;
+ int rows, cols;
int free_fields;
int win_length;
@@ -24,8 +24,9 @@ public:
GameField(const GameField &a);
~GameField();
int GetState() { return state; }
- int GetCols() { return cols; }
int GetRows() { return rows; }
+ int GetCols() { return cols; }
+ int GetWhoMove() { return who_move; }
bool CanMove(int y, int x);
void Move(int y, int x);