From 16fa2b0b5ca31576688457d51d917718ccfdac36 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 11 May 2014 23:34:32 +0200 Subject: [PATCH] Oh yeah, we're using a AttrDict thing, aren't we? --- naja/gamestate.py | 6 +++--- naja/widgets/tile.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/naja/gamestate.py b/naja/gamestate.py index bbe92d3..8d00756 100644 --- a/naja/gamestate.py +++ b/naja/gamestate.py @@ -17,11 +17,11 @@ class GameState(object): self.gameboard = GameBoard.new_game( locations_definition=[ {'actions': []}, - {'actions': [{'required_bits': [BITS['CYAN']], + {'actions': [{'required_bits': [BITS.CYAN], 'action_class': 'DoNothing'}]}, - {'actions': [{'required_bits': [BITS['YELLOW']], + {'actions': [{'required_bits': [BITS.YELLOW], 'action_class': 'DoNothing'}]}, - {'actions': [{'required_bits': [BITS['YELLOW'], BITS['MAGENTA']], + {'actions': [{'required_bits': [BITS.YELLOW, BITS.MAGENTA], 'action_class': 'DoNothing'}]}, ]) diff --git a/naja/widgets/tile.py b/naja/widgets/tile.py index 63fbafe..4a88e12 100644 --- a/naja/widgets/tile.py +++ b/naja/widgets/tile.py @@ -8,9 +8,9 @@ from naja.widgets.base import Widget BIT_MAP = { - BITS['CYAN']: 'board/tile_cyan.png', - BITS['MAGENTA']: 'board/tile_magenta.png', - BITS['YELLOW']: 'board/tile_yellow.png', + BITS.CYAN: 'board/tile_cyan.png', + BITS.MAGENTA: 'board/tile_magenta.png', + BITS.YELLOW: 'board/tile_yellow.png', } -- 2.34.1