flutter_chess_board icon indicating copy to clipboard operation
flutter_chess_board copied to clipboard

makeMove with fedback about success or fail

Open dkwach opened this issue 3 years ago • 0 comments

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 )

dkwach avatar Nov 10 '22 22:11 dkwach