X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fgameboard.py;h=66c651936099520c0d163786881b7422974fac94;hb=781b8371fa213e1a2c44f5ba58444a26c0a5c15e;hp=689c3fd15fcf324d9110763331a6a0eeb93023d2;hpb=e329ac961000595f819bfa145c8d150641c2aece;p=naja.git diff --git a/naja/gameboard.py b/naja/gameboard.py index 689c3fd..66c6519 100644 --- a/naja/gameboard.py +++ b/naja/gameboard.py @@ -188,7 +188,7 @@ class GameBoard(object): # Find which cards are at their maximum and exclude them from # the choice list counts = {} - choices = {card['card_name']: card for card in cards} + choices = dict((card['card_name'], card) for card in cards) for pos, card in board_locations: if pos == position: # skip the card we're replacing if appropriate