示例#1
0
 def update_river(self, table):
     board = HandStat(table)
     self.vec_cards['river'] = board.stat(features=river_features,
                                          hole_cards=self.cards)
     my = HandStat(self.cards + table)
     self.vec_cards['my river'] = my.stat(features=my_river_features)
     self.stage = 3
示例#2
0
 def update_river(self, table):
     board = HandStat(table)
     self.vec_cards['river'] = board.stat( features=river_features,
                                           hole_cards=self.cards )
     my = HandStat( self.cards + table )
     self.vec_cards['my river'] = my.stat( features=my_river_features )
     self.stage=3
示例#3
0
 def update_turn(self, table):
     board = HandStat(table)
     self.vec_cards['turn'] = board.stat(features=turn_features,
                                         hole_cards=self.cards)
     my = HandStat(self.cards + table)
     self.vec_cards['my turn'] = my.stat(features=my_postflop_features)
     self.stage = 2
示例#4
0
 def update_turn(self, table):
     board = HandStat(table)
     self.vec_cards['turn'] = board.stat( features=turn_features,
                                          hole_cards=self.cards )
     my = HandStat( self.cards + table )
     self.vec_cards['my turn'] = my.stat( features=my_postflop_features )
     self.stage=2
示例#5
0
 def update_flop(self, table):
     #table is a list of Cards
     board = HandStat(table)
     self.vec_cards['flop'] = board.stat(features=flop_features,
                                         hole_cards=self.cards)
     my = HandStat(self.cards + table)
     self.vec_cards['my flop'] = my.stat(features=my_postflop_features)
     self.stage = 1
示例#6
0
 def update_flop(self, table):
     #table is a list of Cards
     board = HandStat(table)
     self.vec_cards['flop'] = board.stat( features=flop_features,
                                          hole_cards=self.cards )
     my = HandStat( self.cards + table )
     self.vec_cards['my flop'] = my.stat( features=my_postflop_features )        
     self.stage=1
示例#7
0
 def update_preflop(self, cards):
     self.cards = list(cards)  # needed later
     hand = HandStat(cards=cards)
     self.vec_cards['my preflop'] = hand.stat(features=my_preflop_features)
示例#8
0
 def update_preflop(self, cards):
     self.cards = list(cards) # needed later
     hand = HandStat( cards=cards )
     self.vec_cards['my preflop'] = hand.stat( features=my_preflop_features )