flutter_chess_board
flutter_chess_board copied to clipboard
makeMove with fedback about success or fail
In current version makeMove methods doesn't return anything.
It could be useful to propagate information from game.move to the caller if move was accepted or rejected. Use cases:
- info for user that move was rejected on some status bar or other widget
- chess engine development when engine is providing incorrect move
Instead return bool, raising some exception will be also good (However I would recommend to keep chess.move consistency )