calculate_pot_odds
Decide whether calling a bet is profitable. Returns the pot odds, the equity needed to break even, and — given an out count — the exact chance of hitting and a call/fold verdict. Use this instead of doing the arithmetic: the break-even share is call divided by (pot + bet + call), so a pot-sized bet needs 33.3% and a half-pot bet 25%, and computing it as bet/(pot+bet) overstates both. The chance of hitting is counted exactly over the unseen cards, not approximated by the Rule of 2 and 4, which overstates by nearly 6 points on a 15-out draw. Pair it with analyze_hand, which returns the out count for a hand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bet | Yes | The bet you have to call. | |
| pot | Yes | Pot size before the bet, in any consistent unit. | |
| outs | No | Cards that complete your hand. Optional — omit to get the price alone, with no verdict. analyze_hand reports this as total_outs. | |
| street | No | Required with outs: "flop" when two cards are still to come, "turn" when one is. | |
| implied_extra | No | Extra you expect to win on later streets if you hit. Optional, defaults to 0; it lowers the equity required. |