X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fgameboard.py;h=934aa3d15b1d308cb12d59d37e6e5d1645a0deae;hb=f7343261e6c9fd8b794bb8391ae0cf2d625667bb;hp=ff65c2517e4d63c1a77ce46c1a21ec25661ec50f;hpb=e5731d2cbc0c7a260e7b69aac07e6c26b9b2c56d;p=naja.git diff --git a/naja/gameboard.py b/naja/gameboard.py index ff65c25..934aa3d 100644 --- a/naja/gameboard.py +++ b/naja/gameboard.py @@ -86,7 +86,9 @@ class GameBoard(object): player = Player.import_player(state.pop('player')) board_locations = cls.import_board_locations( state.pop('board_locations')) - return cls(state, player, board_locations) + board = cls(state, player, board_locations) + player.set_gameboard(board) + return board def export(self): data = {