mucked: present() = show(), moved a line out of a loop

fpdb_simple: fix cardMap to understand "0", for stud games
This commit is contained in:
eblade
2009-03-23 17:13:32 -04:00
parent 6ff4997d87
commit 2f4783b50b
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -513,7 +513,8 @@ def convertCardValues(arr):
map(convertCardValuesBoard, arr)
#end def convertCardValues
card_map = { "2": 2, "3" : 3, "4" : 4, "5" : 5, "6" : 6, "7" : 7, "8" : 8, "9" : 9, "T" : 10, "J" : 11, "Q" : 12, "K" : 13, "A" : 14}
# a 0-card is one in a stud game that we did not see or was not shown
card_map = { "0": 0, "2": 2, "3" : 3, "4" : 4, "5" : 5, "6" : 6, "7" : 7, "8" : 8, "9" : 9, "T" : 10, "J" : 11, "Q" : 12, "K" : 13, "A" : 14}
#converts the strings in the given array to ints (changes the passed array, no returning). see table design for conversion details
def convertCardValuesBoard(arr):