2

In poker, a standard deck of 52 cards is used. Each card has one of 13 ranks, ranging from Ace to Deuce, and one of 4 suits: Spades, Hearts, Diamonds, or Clubs.

The rank of a card is crucial. For instance, holding an Ace and a Jack is significantly different from holding a King and a Jack, or an Ace and a Seven.

However, the suit of a card doesn’t hold individual importance. What matters is whether the cards share the same suit or not. For example, holding the King of Clubs and the Jack of Diamonds is equivalent to holding the King of Hearts and the Jack of Spades.

Poker players often talk about whether their cards are suited (sharing the same suit) or offsuit (having different suits). They describe the cards on the board as monotone, two-tone, or rainbow, and talk about holding a flush draw or backdoor flush draw. These terms don’t refer to the suit of an individual card, but rather to the pattern of suits among all the cards.

So, when encoding cards for a game of poker, it’s important to reflect these aspects. Instead of encoding the suit of each card, we should encode the relationships between the suits of all the cards. This approach captures the essence of how suits function in poker.

So, how can we create an encoding scheme that captures these relationships between the suits of cards in poker?

nbro
  • 42,615
  • 12
  • 119
  • 217
Kasia
  • 303
  • 2
  • 9

2 Answers2

0

This is normally handled by considering hand isomorphisms. So in pre-flop Texas holdem there are 169 isomorphisms, consisting of 13 pairs of the same rank, 78 suited pairs of different rank and 78 unsuited pairs of different rank. You can take a similar approach to post-flop boards. Iirc there are 1755 isomorphic flops, 16432 turns, and about 127000 rivers, quite a few of which are nut rivers. Google "A fast and optimal hand isomorphism algorithm"

0

In Recursive Belief Learning, the algorithm developped by Noam brown in 2020, the cards embedding are very well illustrated in this article : https://pub.towardsai.net/rebel-the-ai-that-learned-to-bluff-775818ace0be

hans glick
  • 111
  • 1