def setUp(self): rules = RuleFactory() self.Straight = rules.straight() self.Flush = rules.flush() self.StraightFlush = rules.straightFlush() self.HightCards = rules.highCards() self.onePair = rules.onePair() self.twoPairs = rules.twoPairs() self.threeOfAKind = rules.threeOfAKind() self.fullHouse = rules.fullHouse() self.fourOfAKind = rules.fourOfAKind()
def __init__(self): rules = RuleFactory() self.prioritedRankings = [rules.straightFlush(), rules.fourOfAKind(), rules.fullHouse(), rules.flush(), rules.straight(), rules.threeOfAKind(), rules.twoPairs(), rules.onePair(), rules.highCards()]