diff options
Diffstat (limited to 'Demo/tkinter/guido/solitaire.py')
-rwxr-xr-x | Demo/tkinter/guido/solitaire.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/tkinter/guido/solitaire.py b/Demo/tkinter/guido/solitaire.py index 50a8b26..68dc284 100755 --- a/Demo/tkinter/guido/solitaire.py +++ b/Demo/tkinter/guido/solitaire.py @@ -80,7 +80,7 @@ for s in (HEARTS, DIAMONDS): for s in (CLUBS, SPADES): COLOR[s] = BLACK -ALLSUITS = COLOR.keys() +ALLSUITS = list(COLOR.keys()) NSUITS = len(ALLSUITS) @@ -99,7 +99,7 @@ NVALUES = len(ALLVALUES) # dummy element at index 0 so it can be indexed directly with the card # value. -VALNAMES = ["", "A"] + map(str, range(2, 11)) + ["J", "Q", "K"] +VALNAMES = ["", "A"] + list(map(str, range(2, 11))) + ["J", "Q", "K"] # Solitaire constants. The only one I can think of is the number of |