diff --git a/lib/chess_bloc/chess_bloc.dart b/lib/chess_bloc/chess_bloc.dart index 8b25976..7a1e5f7 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()}"); + 'from: ${event.startSquare.toString()} to: ${event.endSquare.toString()}'); newPosition[event.endSquare] = state.position[event.startSquare]!; newPosition[event.startSquare] = const ChessPiece.none(); @@ -40,6 +40,9 @@ class ChessBloc extends Bloc { bool preCheckHandler( PreCheckMove event, ) { + ServerConnection.getInstance().send( + 'from: ${event.move.startSquare.toString()} to: ${event.move.endSquare.toString()}'); + print('Pretending to check a move before you drop a piece'); return true; }