'''
from naja.gamestate import GameState
try:
- state = GameState.new(deck=deck, max_health=4, wins_required=4)
+ state = GameState.new(deck=deck)
except:
if options.debug:
raise
def start_puzzle_game(self, event, puzzle=None, deck=None):
from naja.scenes.game import GameScene
- max_health = deck.get('max_health', 4)
- wins_required = deck.get('wins_required', 4)
level = 'puzzles/%s' % puzzle
- state = GameState.new(deck=level, max_health=max_health,
- wins_required=wins_required)
+ state = GameState.new(deck=level)
LoadGameEvent.post(state=state)
SceneChangeEvent.post(GameScene)