SirRender00 / texasholdem

A pure python package for Texas Hold 'Em poker
https://github.com/SirRender00/texasholdem/
MIT License
75 stars 19 forks source link

Conform Game Rules to Official WSOP Rules #25

Open SirRender00 opened 2 years ago

SirRender00 commented 2 years ago

Link: https://www.wsop.com/2021/2021_WSOP_Tournament_Rules.pdf

SirRender00 commented 2 years ago
  1. Face up for All-Ins: All cards will be turned face up once a Participant is all in and all betting action for the hand is complete. If a Participant accidentally folds/mucks their hand before cards are turned up, the Tournament Staff reserves the right to retrieve the folded/mucked cards if the cards are clearly identifiable.
SirRender00 commented 2 years ago
  1. Showdown: During a showdown where no Participants are all-in and if cards are not spontaneously tabled, the Floor People may enforce an order of show. The last aggressive Participant on the final betting round (final street where betting is possible) must table first. If there was no bet on the final betting round, then the Participant who would be first to act in a betting round must table first (i.e. first seat left of the button in flop games, high hand showing in stud, low hand showing in razz, etc.) Participants not still in possession of their cards at showdown, or who have mucked face down without tabling their cards; lose any rights or privileges they may have to ask to see any hand. The winning hand must be shown to claim the pot unless there are no other live hands at which point the pot can be awarded to the only live hand remaining. If a Participant refuses to show their hand and intentionally mucks his or her hand, the Participant in violation will receive a penalty, in accordance with Rules 40, 113, and 114.
SirRender00 commented 2 years ago
  1. Awarding Odd Chips: Odd chips will be broken into the smallest denominations in play. In button games with 2 or more high or low hands, the odd chip goes to the first seat left of the button. In stud high, razz, and if there are 2 or more high or low hands in stud/8; the odd chip goes to the high card by suit in the best 5-card hand displayed for showdown. In H/L split games, the odd chip in the total pot goes to the high side. If identical hands win both high and low (ex: 2 wheels in Omaha/8) the pot will be split as evenly as possible.
SirRender00 commented 2 years ago
  1. In no-limit and pot-limit, all raises must be equal to or greater than the size of the previous bet or raise on that betting round. An all-in wager of less than a full raise does not reopen the betting to a Participant who has already acted. a. Exception – two or more consecutive all-in wagers that exceed the minimum allowable bet or raise. By way of example, Participant A - bets 500, Participant B - raises to 1,000, Participant C - calls 1,000, Participant D - moves all-in for 1,300, Participant E - moves all-in for 1,700. If Participant A calls or folds, then Participants B & C will have an option to raise. The minimum allowable raise will be equal to the last complete raise. In this example, the last complete raise was 500; therefore, Participants B or C would be allowed to call 1,700 and raise 500 for a 16 total wager of 2,200. Also, Participants B or C could raise more than 500. (The half-the-size rule for reopening the betting is for limit poker only.)
SirRender00 commented 2 years ago

Rules 70 & 72 will be implemented with https://github.com/SirRender00/texasholdem/issues/19