How would you go about doing it?
I want to be able to judge on input, whether the move typed in by one player is legal or not.
The rules say:
Was thinking of permuting through all possible moves (every roll) and see how many moves can be played. Then on player's input only make sure he moves accordingly.A player must use both numbers of a roll if this is legally possible (or all four numbers of a double). When only one number can be played, the player must play that number. Or if either number can be played but not both, the player must play the larger one. When neither number can be used, the player loses his turn. In the case of doubles, when all four numbers cannot be played, the player must play as many numbers as he can.
Is this a good path to go?