Closed krystian1201 closed 9 years ago
Checking should apply only to tiles from a move (last placed on board) - DONE
Checking for the same column or row is not enough - tiles should be next to each other
One tile - OR instead of XOR - OK
Adding one tile - DONE
Some bug appeared. Extending by one tile
Checking if tiles are in the same row or column makes sense only if there are at least two tiles in a move
What about checking if tiles are next to each other? Also makes sense only if there are at least two tiles in a move. It includes the tiles already on board - good. However, it still makes sense for at least two tiles in a move.
GetTilesCommonRowColumnOrBoth - includes also tiles on board - should it? Yes
The bug with extending word by one tile is fixed.
Such check cannot be done "on-line". It will be done after user finishes their move. When tiles are not in one row or column, user should get information that move was not valid. The tiles should go back to the tiles rack. - DONE