This will probably result in Move getting refactored a bit. It would probably be possible just to allow Move.to to be nullable but if we're adding more varied types of moves, I'd prefer to just have Move become an interface and make variations of it. This might also allow for refactoring the makeMove function to make it significantly more readable.
This will probably result in
Move
getting refactored a bit. It would probably be possible just to allowMove.to
to be nullable but if we're adding more varied types of moves, I'd prefer to just haveMove
become an interface and make variations of it. This might also allow for refactoring themakeMove
function to make it significantly more readable.