Change str 0 to int 0 in card translating.
This commit is contained in:
parent
3b04c1baac
commit
aebbae8ed0
|
@ -514,7 +514,7 @@ def convertCardValues(arr):
|
||||||
#end def convertCardValues
|
#end def convertCardValues
|
||||||
|
|
||||||
# a 0-card is one in a stud game that we did not see or was not shown
|
# 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}
|
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
|
#converts the strings in the given array to ints (changes the passed array, no returning). see table design for conversion details
|
||||||
def convertCardValuesBoard(arr):
|
def convertCardValuesBoard(arr):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user