summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/board.cpp b/board.cpp
index 75579e0..0ac5348 100644
--- a/board.cpp
+++ b/board.cpp
@@ -237,7 +237,7 @@ vector<Board> Board::subsequents() const {
for (int dy = -1; dy <= 1; dy++)
for (int dx = -1; dx <= 1; dx++) {
if (dx == 0 && dy == 0) continue;
- for (int k = 1; k < 7; k++) {
+ for (int k = 1; k < 8; k++) {
int x2 = x + k * dx, y2 = y + k * dy;
if (x2 < 0 || x2 >= 8 || y2 < 0 || y2 >= 8) break;
if (at(x2, y2) == EMPTY || colour(at(x2, y2)) != clr) {