diff options
author | tomsmeding <tom.smeding@gmail.com> | 2018-03-12 12:27:19 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2018-03-12 12:27:19 +0100 |
commit | dd3d84dc02d7d7fc782fe2734b9ab6fd028b1346 (patch) | |
tree | c5f0d1187a714eecf6ab7209f36b3dde3510550f | |
parent | 485228f8e01fef40a79cff4c5631388188675df6 (diff) |
Fix comments
-rw-r--r-- | board.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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()) { |