I vaguely mentioned that I wanted to develop an AI or game for Texas Hold’em, so I tried making the framework for the game I wrote about in the post. The opposing player does not think at all, but simply randomly chooses Raise, Call, or Fold with a certain probability. This means that if you properly evaluate the probability of winning with your hand, you can win, and if you are a beginner-level player who is not good at estimating the probability of winning with your hand (by the way, I am not only not a complete beginner, but have never actually played against other people), you may still be able to enjoy this game to a certain extent. As a cheating feature, it can also display a simulated probability of winning, which may be just the thing to use to get a feel for the game. In the future, I plan to incorporate algorithms that will allow opposing players to make rational decisions.
To play, press the start button to start the game, then just click Raise, Call, and Fold. The raise is calculated as x times the minimum raise (the value in the select box). When a round ends, you automatically move on to the next round, so the game continues indefinitely. If you want to change or reset your settings, just hit the refresh button on your browser. Since no data is saved, refreshing or closing the page will mean you have to start over from the beginning. The ♢ in the Order column is a symbol that represents that player’s turn, and when ♢ appears in your column, you press a button to progress through the game.
If the number of players is fixed, the opposing player will leave the game when their chips fall below half the user’s and be replaced by another player. If you select “Float” as the number of players, enemy players will randomly leave the table if they lose chips or play too many times, and new enemy players will randomly appear. The probability is about 3 to 7 people. If you go all-in and defeat all the enemies, the number of players will increase again from 2 to a little at a time. During the showdown, hands are announced and the abbreviations are as follows: HC: High Card, 1P: One Pair, 2P: Two Pair, 3C: Three Cards, ST: Straight, FL: Flush, FH: Full House, 4C:Four Cards, SF: Straight Flush (including Royal Straight Flush).
Comments