Implement static puzzle deck construction.
[naja.git] / naja / gamestate.py
index c3bc0ce96b75c27bd14bbe49b3daad3c20ee0ef9..19051a42b8c1d450d4f4b43a0662610f4ad56825 100644 (file)
@@ -23,8 +23,8 @@ class GameState(object):
 
     @classmethod
     def new(cls, deck='standard', **kw):
-        locations_deck = load_location_deck(deck)
-        return cls(GameBoard.new_game(locations_deck['cards'], **kw))
+        deck = load_location_deck(deck)
+        return cls(GameBoard.new_game(deck, **kw))
 
     @classmethod
     def load(cls, data):