Naja game state.
"""
- def __init__(self):
- # This is a very simple deck to allow testing more drawing logic
- # on tiles. These will need to be replaced with better stuff.
+ def __init__(self, data=None):
locations_deck = load_location_deck('standard')
- # locations_deck = load_location_deck('test')
- self.gameboard = GameBoard.new_game(locations_deck['cards'])
+ if data is None:
+ self.gameboard = GameBoard.new_game(locations_deck['cards'])
+ else:
+ self.gameboard = GameBoard.import_game(data)
@property
def player(self):