diff options
-rw-r--r-- | board.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |