Closed Starlight-30036225 closed 9 months ago
` String Location = x + "" + y; String PieceLocation = SelectedPiece.getLocation();
if (possibleMoves.contains(Location)) { //Checks requested move is possible
if (!White) {
Location = FlipCoords(Location);
PieceLocation = FlipCoords(SelectedPiece.getLocation());
}
master.requestMove(PieceLocation, Location);
}`
This fixed it
When a player playing as black request to make a move, their move is not being flipped to accommodate the reversed board state.