From f0163d7e905a65c13e2fab35bf3b8fec3c7b726d Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Mon, 12 Mar 2018 12:24:34 +0100 Subject: Queen can move to the other side of the bord please --- board.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board.cpp b/board.cpp index 75579e0..0ac5348 100644 --- a/board.cpp +++ b/board.cpp @@ -237,7 +237,7 @@ vector 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) { -- cgit v1.2.3-70-g09d2