From 086e2f9814e5fbd7ba0fe7733854db8b4fd7775c Mon Sep 17 00:00:00 2001 From: Worros Date: Sat, 2 Apr 2011 12:27:29 +0800 Subject: [PATCH] Card: Remove unused function --- pyfpdb/Card.py | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/pyfpdb/Card.py b/pyfpdb/Card.py index 1bcc8dd5..4df18c46 100755 --- a/pyfpdb/Card.py +++ b/pyfpdb/Card.py @@ -101,36 +101,6 @@ def twoStartCardString(card): #print "twoStartCardString(", card ,") = " + 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): """ 0=none, 1-13=2-Ah 14-26=2-Ad 27-39=2-Ac 40-52=2-As """ if suit == 'h': return(value-1)