Undefined invalid move type
Situation
We have defined several errors for different types of invalid moves, such as a word that does not fit on the board, or an invalid coordinate. However, it is unclear to me what error should be sent whenever someone tries to lay down a word which is not connected to any other tiles on the board.
Proposed Solution
My proposed solution would be to create a new error for this, which would be E011
(if the error of issue #1 gets implemented, otherwise it will be E010
). This error would represent that the word is not connected to any other words on the board.
Alternative Solution
There already exists an error for a word that does not fit on the board (E005
). We could extend this error such that the described case also falls under this error. However, since a lot of people were keen on splitting 'Invalid move'-errors into several different types, I'm not sure whether you would want to join these cases.
Conclusion Please let me know which option you think is best, or suggest any alternatives when you think of them. Since the project is due relatively soon, I would like to close this issue within 24h (17:00, 26-01-2022).