From 1dab094d19ff105239720c66f5260a946d909750 Mon Sep 17 00:00:00 2001 From: Marco Date: Sat, 19 Nov 2022 13:24:25 +0100 Subject: [PATCH] Change move messages. --- lib/chess_bloc/chess_bloc.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/chess_bloc/chess_bloc.dart b/lib/chess_bloc/chess_bloc.dart index 7a1e5f7..79cfe89 100644 --- a/lib/chess_bloc/chess_bloc.dart +++ b/lib/chess_bloc/chess_bloc.dart @@ -24,7 +24,7 @@ class ChessBloc extends Bloc { Map 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 { 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;