Removed winning line

This commit is contained in:
2021-03-25 01:50:45 +01:00
parent 4f04ef4d39
commit f4f5b7cbc1
5 changed files with 12 additions and 28 deletions

View File

@@ -63,14 +63,6 @@ public class TicTacToe_Server {
if (gameEnded) {
outstreams.get(client).writeUTF("gameEnded");
outstreams.get(client).flush();
//send coordinates
String coordinates = "";
for (Point point : ticTacToe_gameRules.getWinCoordinates()) {
coordinates += point.x + ";" + point.y + ";";
}
//send winning fields
outstreams.get(client).writeUTF(coordinates);
serverLogger.printLog("Winning coordinates got sent", coordinates, clientNames.get(client), LogType.Output);
}
} catch (IOException e) {
e.printStackTrace();