Skip to content

Commit

Permalink
[fix] loading game state from file.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderPaddyS committed Jan 9, 2025
1 parent a35a019 commit fe6face
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ class Game2048(val config: GameConfig, boardState: Board? = null): IGame2048 {
is GameConfig -> {
val board = readObject() as GameBoard
val game = Game2048(obj, board.data)
game.points = readLong()
try {
game.boardHistory.add(readObject() as SingleGameState)
} catch (_: EOFException) {}
Expand Down

0 comments on commit fe6face

Please sign in to comment.