Пример #1
0
#        #hero_name = 'ollikahn23'
#        player_names = [p.name for p in hh.players]
#        #player_names = [p.name for p in players]        
#        hero_index = player_names.index(hero_name)
#        #hero_index = player_names.index(hero_name)        
#        return hh.players[hero_index], hero_index
#
#hero, hero_index = get_hero_from_players(match.group('hero_name')) 

first_raw_card = match.group(2)
second_raw_card = match.group(3)
raw_hand = first_raw_card + second_raw_card

   
hand = [
   Card.new(first_raw_card),
   Card.new(second_raw_card)
]    
    

#calculating our equity preflop, regarding the count of players

<<<<<<< HEAD
=======


>>>>>>> 8171f4423b51b7e791a58207e51e9be61c8e3ff7
p11 = 0                 #how often do we win
p22 = 0                 #how often opponents win
opp = NotOut            #how many opponents are still in the game in that moment, we have to make a decision
playerHero_hand = hand  #our hand
Пример #2
0
#def get_hero_from_players(hero_name):
#        #hero_name = 'ollikahn23'
#        player_names = [p.name for p in hh.players]
#        #player_names = [p.name for p in players]
#        hero_index = player_names.index(hero_name)
#        #hero_index = player_names.index(hero_name)
#        return hh.players[hero_index], hero_index
#
#hero, hero_index = get_hero_from_players(match.group('hero_name'))

first_raw_card = match.group(2)
second_raw_card = match.group(3)
raw_hand = first_raw_card + second_raw_card

hand = [Card.new(first_raw_card), Card.new(second_raw_card)]

#calculating our equity preflop, regarding the count of players

p11 = 0  #how often do we win
p22 = 0  #how often opponents win
opp = NotOut  #how many opponents are still in the game in that moment, we have to make a decision
playerHero_hand = hand  #our hand

start_time = time.time()
for i in range(20000):
    #constructin the whole deck
    deck = Deck()

    #Card.print_pretty_cards(player1_hand)