Skip to main content

Game & Card Codes

Reference tables for poker game mechanics including card encoding, hand combinations, game variants, and betting structures.


Card Codes

Standard 52-card deck encoding. Cards are numbered 0-51, plus joker (52).

Pattern: Each rank has 4 consecutive codes for suits in order: Clubs, Diamonds, Hearts, Spades.

RankClubsDiamondsHeartsSpades
20 (2c)1 (2d)2 (2h)3 (2s)
34 (3c)5 (3d)6 (3h)7 (3s)
48 (4c)9 (4d)10 (4h)11 (4s)
512 (5c)13 (5d)14 (5h)15 (5s)
616 (6c)17 (6d)18 (6h)19 (6s)
720 (7c)21 (7d)22 (7h)23 (7s)
824 (8c)25 (8d)26 (8h)27 (8s)
928 (9c)29 (9d)30 (9h)31 (9s)
1032 (10c)33 (10d)34 (10h)35 (10s)
Jack36 (Jc)37 (Jd)38 (Jh)39 (Js)
Queen40 (Qc)41 (Qd)42 (Qh)43 (Qs)
King44 (Kc)45 (Kd)46 (Kh)47 (Ks)
Ace48 (Ac)49 (Ad)50 (Ah)51 (As)
Joker52 (PJ)

Quick Formula

To decode a card code (0-51):

  • Rank: code / 4 (0=2, 1=3, ... 12=Ace)
  • Suit: code % 4 (0=Clubs, 1=Diamonds, 2=Hearts, 3=Spades)

Example: Code 47 → Rank: 47/4 = 11 (King), Suit: 47%4 = 3 (Spades) → King of Spades (Ks)


Combination Codes

Poker hand rankings used in highCombinationCode and lowCombinationCode fields.

Standard Combinations

CodeCombinationDescription
ARoyal FlushA-K-Q-J-10 same suit
BStraight FlushFive consecutive cards, same suit
CFour of a KindFour cards of same rank
DFull HouseThree of a kind + pair
EFlushFive cards same suit
FStraightFive consecutive cards
GThree of a KindThree cards same rank
HTwo PairTwo different pairs
IPairTwo cards same rank
JNoneHigh card only

Low Hand Combinations

Used in Hi/Lo games (Omaha Hi/Lo, Stud Hi/Lo, etc.):

CodeCombinationDescription
KEight High8-high low hand
LSeven High7-high low hand
MSix High6-high low hand
NFive High5-high low hand
PLow 7 PerfectPerfect 7-low (7-5-4-3-2)
QLow 8 PerfectPerfect 8-low (8-4-3-2-A)
RLow Rough 8-6Rough 8-low with 6
SLow 8-7 SmoothSmooth 8-7-low
TLow Average 8Average 8-low
ULow Rough 8-7Rough 8-7-low
VLow 9 PerfectPerfect 9-low
1WheelA-2-3-4-5 (best low)
2Low 22-low variant
3Low 33-low variant
4Low 44-low variant
5Low 66-low variant
6Low 77-low variant
7Low 88-low variant
8Low 1111-low variant
9Low 1313-low variant
@Low 1414-low variant
#Low 1515-low variant
+Low 1616-low variant
&Low 1717-low variant

Badugi Combinations

CodeCombinationDescription
WBadugi4-card Badugi
X3-Card Low Hand3-card hand
Y2-Card Low Hand2-card hand
Z1-Card Low Hand1-card hand

Combination Code Format

In events like OnGameDone, combinations appear as:

highCombinationCode: "H.50;47;45;18;16.H.H"

Format: [Combination].[Card codes].[Game type].[Mode]

  • Combination: Letter code from tables above
  • Card codes: Semicolon-separated card codes
  • Game type: H = Hold'em, O = Omaha, etc.
  • Mode: H = Hi, L = Low

Pot Type Codes

Betting structure codes used in game configuration:

CodeTypeDescription
0NoneNo limit type specified
70Fixed (F)Fixed limit betting
80Pot Limit (P)Maximum bet = pot size
85No Limit (U)No maximum bet

Chinese Poker Scoring Methods

CodeTypeDescription
79Scoring 1-6 (O)Chinese poker scoring method 1-6
84Scoring 2-4 (T)Chinese poker scoring method 2-4
87Scoring 2-6 (W)Chinese poker scoring method 2-6

Game Type Codes

Complete list of supported game variants:

Texas Hold'em Variants

CodeLetterGame Type
72HHold'em
546Short Deck (6+)
90ZTriton ShortDeck
101Cowboy Hold'em

Omaha Variants

CodeLetterGame Type
79OOmaha
80POmaha Hi/Lo
88XOmaha 5 Card
71Omaha 5 Card Hi/Lo
89YCourchevel
91Omaha 6 Card
93Omaha 6 Card Hi/Lo
74JPineapple Poker
75KTurkish

Stud Variants

CodeLetterGame Type
83SStud
84TStud Hi/Lo
82RRazz

Draw Games

CodeLetterGame Type
68D2-7 Triple Draw
94^2-7 Single Draw
66BBadugi
69EBadeucy
67CBadacey
81Q7 Card Draw 7-A

Chinese Poker Variants

CodeLetterGame Type
78NChinese
70FOpenface Chinese
73IChinese Pineapple
76LChinese 2-7 Pineapple
85UChinese Turbo
77MChinese OF Pineapple Progressive
102Chinese OF Ultimate
103Chinese OF Jokers
104Chinese OF Jokers+Ultimate

Rummy Variants

CodeLetterGame Type
65APoints Rummy
86VDeals Rummy
87WPool Rummy
63Okey Rummy
64Okey Rummy Pool

Telesina Variants

CodeLetterGame Type
92Telesina
95Telesina with Vela
96Telesina 7-deck
97Telesina 7-deck with Vela

Other Games

CodeLetterGame Type
98Callbreak
99Big2
100Big2 Pool
55TeenPatti
35#Mixed Games
34Custom Games
0Unknown