summaryrefslogtreecommitdiffstats
path: root/GameField.hpp
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-02-17 21:39:00 +0000
committerJoursoir <chat@joursoir.net>2021-02-17 21:39:00 +0000
commitb89e003d7e1ed6997d2a5a9da45b5305b3bb9b05 (patch)
tree241372d8a2185c855b1f2c40cbd822ed265714f4 /GameField.hpp
parent00fe0c43e7080a8d8af2566196a8540eee553ad2 (diff)
downloadlp-gomoku-b89e003d7e1ed6997d2a5a9da45b5305b3bb9b05.tar.gz
lp-gomoku-b89e003d7e1ed6997d2a5a9da45b5305b3bb9b05.tar.bz2
lp-gomoku-b89e003d7e1ed6997d2a5a9da45b5305b3bb9b05.zip
improve rows and cols scaning
Diffstat (limited to 'GameField.hpp')
-rw-r--r--GameField.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/GameField.hpp b/GameField.hpp
index d312644..9975caa 100644
--- a/GameField.hpp
+++ b/GameField.hpp
@@ -28,9 +28,9 @@ public:
void Move(int y, int x);
private:
- void UpdateState();
- int ScanRows();
- int ScanCols();
+ void UpdateState(int y, int x);
+ int ScanRowsAround(int y, int x);
+ int ScanColsAround(int y, int x);
int ScanDiags();
};