diff options
author | John Fultz <jfultz@wolfram.com> | 2023-07-23 09:40:06 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2023-07-23 09:40:24 -0500 |
commit | c68ac871c73ff4c76246fc49465f53f8befef92f (patch) | |
tree | 7989920a36f2e35fe3f963621f12a75f58a702c5 /board.cpp | |
parent | 320c83c069f5fb2adb7fa9deeef1e16fe55232ae (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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++; } } } |