Card: Remove unused function
This commit is contained in:
parent
753596f217
commit
086e2f9814
|
@ -101,36 +101,6 @@ def twoStartCardString(card):
|
||||||
#print "twoStartCardString(", card ,") = " + ret
|
#print "twoStartCardString(", card ,") = " + ret
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def fourStartCards(value1, suit1, value2, suit2, value3, suit3, value4, suit4):
|
|
||||||
""" Function to convert 4 value,suit pairs into a Omaha style starting hand,
|
|
||||||
haven't decided how to encode this yet """
|
|
||||||
# This doesn't actually do anything yet - CG
|
|
||||||
|
|
||||||
# What combinations do we need to store? just cards: AA23? some suits as well e.g. when
|
|
||||||
# double suited ATcKTd? Lots more possible combos than holdem :-( 270K vs 1326? not sure
|
|
||||||
# Probably need to use this field as a key into some other table - sc
|
|
||||||
|
|
||||||
#AAKKds
|
|
||||||
#AAKKs
|
|
||||||
#AAKKr
|
|
||||||
# Is probably what we are looking for
|
|
||||||
|
|
||||||
# mct:
|
|
||||||
# my maths says there are 4 classes of suitedness
|
|
||||||
# SSSS SSSx SSxy SSHH
|
|
||||||
# encode them as follows:
|
|
||||||
# SSSS (K, J, 6, 3)
|
|
||||||
# - 13C4 = 715 possibilities
|
|
||||||
# SSSx (K, J, 6),(3)
|
|
||||||
# - 13C3 * 13 = 3718 possibilities
|
|
||||||
# SSxy (K, J),(6),(3)
|
|
||||||
# - 13C2 * 13*13 = 13182 possibilities
|
|
||||||
# SSHH (K, J),(6, 3)
|
|
||||||
# - 13C2 * 13C2 = 6084 possibilities
|
|
||||||
# Needless to say they won't fit on a 13x13 grid.
|
|
||||||
# The actual number of hands in each class is far greater
|
|
||||||
return(0)
|
|
||||||
|
|
||||||
def cardFromValueSuit(value, suit):
|
def cardFromValueSuit(value, suit):
|
||||||
""" 0=none, 1-13=2-Ah 14-26=2-Ad 27-39=2-Ac 40-52=2-As """
|
""" 0=none, 1-13=2-Ah 14-26=2-Ad 27-39=2-Ac 40-52=2-As """
|
||||||
if suit == 'h': return(value-1)
|
if suit == 'h': return(value-1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user