addo save in json files
All checks were successful
Linux arm64 / Build (push) Successful in 40s

This commit is contained in:
Janet-Doe
2025-01-28 18:58:26 +01:00
parent 4208e7058f
commit a6dea76785
4 changed files with 47 additions and 18 deletions

View File

@@ -70,7 +70,7 @@ public class Server {
public void startGame(MultiDoku doku) {
this.game.startGame(doku);
broadcastPacket(new StartGamePacket(SudokuSerializer.serializeSudoku(doku)));
broadcastPacket(new StartGamePacket(SudokuSerializer.serializeSudoku(doku).toString()));
}
}

View File

@@ -60,7 +60,7 @@ public class ServerConnexion extends Connexion {
this.server.broadcastPacket(new PlayerJoinPacket(player));
sendPacket(new ConnexionInfoPacket(player.getId()));
if (this.server.getGame().getGameState() == GameState.GameGoing) {
sendPacket(new StartGamePacket(SudokuSerializer.serializeSudoku(this.server.getGame().getDoku())));
sendPacket(new StartGamePacket(SudokuSerializer.serializeSudoku(this.server.getGame().getDoku()).toString()));
}
}