summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-03-12 12:27:19 +0100
committertomsmeding <tom.smeding@gmail.com>2018-03-12 12:27:19 +0100
commitdd3d84dc02d7d7fc782fe2734b9ab6fd028b1346 (patch)
treec5f0d1187a714eecf6ab7209f36b3dde3510550f
parent485228f8e01fef40a79cff4c5631388188675df6 (diff)
Fix comments
-rw-r--r--board.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/board.cpp b/board.cpp
index b72ac5f..69a7094 100644
--- a/board.cpp
+++ b/board.cpp
@@ -316,7 +316,7 @@ bool Board::isValid(const Move &mv) const {
}
CheckResult Board::checkCheck(int player) const {
- // First check 'check' (p), then check if we have 'check' after any move (q).
+ // First check 'check' (p), then check if we have 'check' after every move (q).
// p | q | Result
// 0 | 0 | safe
// 0 | 1 | stalemate
@@ -335,7 +335,7 @@ CheckResult Board::checkCheck(int player) const {
}
}
- // Then check if we have 'check' after any move
+ // Then check if we have 'check' after every move
bool haveQ = true;
B1.onTurn = player;
for (const Board &B2 : subsequents()) {