krystian1201 / MyScrabble

0 stars 2 forks source link

Checking if the placed tiles are in one row, or in one column #19

Closed krystian1201 closed 9 years ago

krystian1201 commented 9 years ago

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

krystian1201 commented 9 years ago

Checking should apply only to tiles from a move (last placed on board) - DONE

krystian1201 commented 9 years ago

Checking for the same column or row is not enough - tiles should be next to each other

krystian1201 commented 9 years ago

One tile - OR instead of XOR - OK

krystian1201 commented 9 years ago

Adding one tile - DONE

krystian1201 commented 9 years ago

Some bug appeared. Extending by one tile

krystian1201 commented 9 years ago

Checking if tiles are in the same row or column makes sense only if there are at least two tiles in a move

krystian1201 commented 9 years ago

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.

krystian1201 commented 9 years ago

GetTilesCommonRowColumnOrBoth - includes also tiles on board - should it? Yes

krystian1201 commented 9 years ago

The bug with extending word by one tile is fixed.