summaryrefslogtreecommitdiff
path: root/board.cpp
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2023-07-23 09:40:06 -0500
committerJohn Fultz <jfultz@wolfram.com>2023-07-23 09:40:24 -0500
commitc68ac871c73ff4c76246fc49465f53f8befef92f (patch)
tree7989920a36f2e35fe3f963621f12a75f58a702c5 /board.cpp
parent320c83c069f5fb2adb7fa9deeef1e16fe55232ae (diff)
Fix bug which could pass phony words.
Reported to me by John Chew, if you… * Made a vertical play * …through an existing tile * …which makes horizontal words below the existing tile * …and one of the horizontal words is phony Then the phony is not detected. The logic for horizontal plays was correct…an easy-to-overlook mistake existed in the parallel logic for vertical plays.
Diffstat (limited to 'board.cpp')
-rw-r--r--board.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/board.cpp b/board.cpp
index 6d3f615..c295c12 100644
--- a/board.cpp
+++ b/board.cpp
@@ -300,8 +300,8 @@ MoveList Board::allWordsFormedBy(const Move &move) const
{
ret.push_back(Move::createPlaceMove((i + move.startrow), startColumn, /* horizontal */ true, word));
}
- i++;
}
+ i++;
}
}
}