Fix for CBet stat
Patch from bbtgaf@googlemail.com aka gimick DerivedStats.betStreet() was only functioning if the player was the first person to act on a street. If the player was checked to the function would exit as False before ever finding the player
This commit is contained in:
		
							parent
							
								
									fb6af1fe75
								
							
						
					
					
						commit
						81c731b42e
					
				|  | @ -505,9 +505,13 @@ class DerivedStats(): | ||||||
|         """Returns true if player bet/raised the street as their first action""" |         """Returns true if player bet/raised the street as their first action""" | ||||||
|         betOrRaise = False |         betOrRaise = False | ||||||
|         for act in self.hand.actions[street]: |         for act in self.hand.actions[street]: | ||||||
|             if act[0] == player and act[1] in ('bets', 'raises'): |             if act[0] == player: | ||||||
|                 betOrRaise = True |                 if act[1] in ('bets', 'raises'): | ||||||
|             else: |                     betOrRaise = True | ||||||
|  |                 else: | ||||||
|  |                     # player found but did not bet or raise as their first action | ||||||
|                 break |                 break | ||||||
|  |             #else: | ||||||
|  |                 # haven't found player's first action yet | ||||||
|         return betOrRaise |         return betOrRaise | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user