You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a move event is generated after calling ChessBoardController.makeMoveWithPromotion or ChessBoardController.makeMove, even if the move is invalid. This causes subscribers to receive notifications for rejected moves, forcing client-side logic to handle both valid and invalid moves.
Proposed solutions:
Include additional information in the event indicating whether the move was accepted or rejected.
Introduce separate streams, such as approvedMovementsStream and rejectedMovementsStream.
The text was updated successfully, but these errors were encountered:
Currently, a move event is generated after calling
ChessBoardController.makeMoveWithPromotion
orChessBoardController.makeMove
, even if the move is invalid. This causes subscribers to receive notifications for rejected moves, forcing client-side logic to handle both valid and invalid moves.Proposed solutions:
The text was updated successfully, but these errors were encountered: