Skip to content

Commit

Permalink
Consolidated "Pot is good" message to betting_round() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
von committed Nov 23, 2010
1 parent c0f2f1b commit da3354c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyPoker/PokerGame.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ def betting_round(self, hand_state):
action = player.get_action(request, self, hand_state)
betting_round.process_action(action)
self.report_action(player, action)
self.message("Pot is good")
betting_round.sweep_bets_into_pot()

def pot_to_high_hand(self, hand_state):
Expand Down Expand Up @@ -733,13 +734,11 @@ def action_to_next_player(self):
# Action is back on last player to bet or raise,
# pot is now good.
self.pot_is_good = True
self._message("Pot is good.")
if (self.last_to_bet is None) and \
(self.last_to_blind is not None) and \
(self.action_is_on is self.last_to_blind):
# No one called the blind
self.pot_is_good = True
self._message("Pot is good.")
return self.action_is_on

def is_pot_good(self):
Expand Down

0 comments on commit da3354c

Please sign in to comment.