Change move messages.
This commit is contained in:
parent
6f124b9a5f
commit
1dab094d19
@ -24,7 +24,7 @@ class ChessBloc extends Bloc<ChessEvent, ChessBoardState> {
|
||||
Map<ChessCoordinate, ChessPiece> newPosition = {};
|
||||
|
||||
ServerConnection.getInstance().send(
|
||||
'from: ${event.startSquare.toString()} to: ${event.endSquare.toString()}');
|
||||
'mv ${event.startSquare.toString()} ${event.endSquare.toString()}');
|
||||
|
||||
newPosition[event.endSquare] = state.position[event.startSquare]!;
|
||||
newPosition[event.startSquare] = const ChessPiece.none();
|
||||
@ -41,7 +41,7 @@ class ChessBloc extends Bloc<ChessEvent, ChessBoardState> {
|
||||
PreCheckMove event,
|
||||
) {
|
||||
ServerConnection.getInstance().send(
|
||||
'from: ${event.move.startSquare.toString()} to: ${event.move.endSquare.toString()}');
|
||||
'pc ${event.move.startSquare.toString()} ${event.move.endSquare.toString()}');
|
||||
|
||||
print('Pretending to check a move before you drop a piece');
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user