Skip to main content

Hand History Codes

Mnemonic codes used in hand history events for replaying and analyzing poker hands. These codes appear in the events field of OnGameHistoryDone.


Game Flow Events

Game Lifecycle

CodeEventExampleDescription
GSGAMESTARTGS 22019085 wsiGame started (gameId, wsi=events saved with mnemonics)
GEGAMEENDGE 22019085Game completed (gameId)
GTGameTypeGT 72 FGame type and pot type (Mixed games)
DTSDeckTypeSelectedDTS 28Deck selected, shows lowest card code (0=full, 28=9+)
STStartedSTTable started on game server
CZClosedCZTable closed on game server
PSPausedPSTable paused
REResumedRETable resumed

Dealer & Blinds

CodeEventExampleDescription
DLDealerChangeDL 1 4 5Dealer=seat 1, SB=seat 4, BB=seat 5
LILevelInfoLI 1 100 200 45Tournament level info (level, SB, BB, ante)
SBSmallBlindSB 4 250Seat 4 posted $2.50 small blind
BBBigBlindBB 4 250Seat 4 posted $2.50 big blind
EBExtraBlindEB 4 250Seat 4 posted $2.50 extra blind
ANAnteAN 4 250Seat 4 posted $2.50 ante
APAnteToPotAP 100 100Antes ($1) moved to pot (now $1)
SRStraddleSR 4 250Seat 4 posted $2.50 straddle
DSRDeclineStraddleDSR 3 0Seat 3 declined straddle
BIBringInBI 4 250Seat 4 posted $2.50 bring-in (Stud)

Player Actions

Betting Actions

CodeEventExampleDescription
BTBetBT 4 250Seat 4 bet $2.50
CLCallCL 4 250Seat 4 called $2.50
RSRaiseRS 4 550Seat 4 raised to $5.50
CHCheckCH 3Seat 3 checked
FFoldF 3Seat 3 folded
FSFoldShowFS 3Seat 3 folded and showed cards

Card Actions

CodeEventExampleDescription
CCardToPlayerC 2 44 KcSeat 2 received King of Clubs (code 44)
DCardToTableD 17 6d6 of Diamonds dealt to board
LCardToTableLowerRowL 17 6dCard to lower row (Run It Twice)
DCDrawCardsDC 2 15;14;26;25;8 {5s 5h 8h 8d 4c}Seat 2 drew new cards
SPTStandPatSPT 3Seat 3 kept cards (draw games)
CSDCardsForSeatDiscardedCSD 3Seat 3 discarded all cards
SCShowCardsSC 3 3d;##Seat 3 showed cards (## = hidden)
MUMuckMU 3Seat 3 mucked cards
HWHideWinHW 3Winner at seat 3 hid cards
WJWildJokerWJ 44 KcWild joker Kc dealt to table

Table Position

CodeEventExampleDescription
SDSitDownSD 3 486 johnPlayer john (ID 486) sat at seat 3
SUStandUpSU 0Seat 0 stood up
SISitInSI 5Seat 5 returned to game
SOSitOutSO 5Seat 5 sat out
RESReserveRES 3 486 johnPlayer john reserved seat 3
JWJoinWaitJW 486 johnPlayer john joined waiting list
LWLeaveWaitLW 486 johnPlayer john left waiting list
SSSubscribeSS 486 johnPlayer john watching table
USUnsubscribeUS 486 johnPlayer john stopped watching
WAWaitWA 3Seat 3 waiting for next hand
WBWaitBBWB 3Seat 3 waiting for BB position
DIDisconnectedDI 3 486 johnSeat 3 disconnected

Pot & Money Events

Pot Management

CodeEventExampleDescription
BBetsToPotB 100 1862$1 bets added, pot now $18.62
PPPotToPlayerPP 2 400 0Seat 2 won $4 from main pot (index 0)
PRPotToRakePR 40 0$0.40 rake from pot 0
UBUncalledBetUB 2 400 0$4 uncalled bet returned to seat 2
UCUnclaimedUC 400 0$4 unclaimed in pot 0
PWPlayerWonPW 0 490Seat 0 won $4.90
CDCashDrawnCD 3 15850$158.50 added to seat 3
BRBetToRakeBR 0 50Seat 0 paid $0.50 rake (Chinese)
BWBetToWinnerBW 0 1 450Seat 0 paid $4.50 to seat 1 (Chinese)

Special Features

CodeEventExampleDescription
RHRabbitHuntingRH 2 120 5 7 29Seat 2 paid $1.20 to see cards 5,7,29
BDFBetDealJackpotFeeTakenBDF 1 55Seat 1 paid $0.55 jackpot fee
JFWJackpotFeeFromWinningTakenJFW 1 55Winner seat 1 paid $0.55 jackpot fee

Tournament Events

CodeEventExampleDescription
SZSharePrizeSZ 3 1Seat 3 agreed to share prize (1=yes, 0=no)
SSeatInfoS 5 5550 6158 johnSeat 5 info: $55.50 stack, ID 6158, nick john
SPSeatPointsSP 0 6Seat 0 has 6 points (Chinese batch start)

Time & Auto-Actions

CodeEventExampleDescription
WWasAutoActionWPrevious action was automatic
WTWasTimeoutActionWTAction triggered by timeout
MTMoreTimeMT 1Seat 1 used extra time (pre-blinds)
ETExtraTimeBankAppliedET 2 6121 30 johnSeat 2 used 30s from time bank
DATDisconnectionAdditionalTimeAppliedDAT 2 6121 30 johnDisconnected seat 2 got 30s extra
DNADisconnectionNoAdditionalTimeDNA 2 6121 johnDisconnected seat 2 denied extra time
PCPlayerCommandPC 1 14Seat 1 sent command 14

Insurance Events

CodeEventExampleDescription
IDInsuranceDecisionID 3 0 120 4s;7dSeat 3 insured pot 0 for $1.20 against 4s,7d
IPInsurancePaymentIP 3 1 1000Seat 3 got $10 insurance payout from pot 1
ICInsuranceCommissionIC 3 0 200$2 insurance commission from pot 0

Run It Twice

CodeEventExampleDescription
RITRunItTwiceActiveRITRun It Twice mode activated

Bomb Pot

CodeEventExampleDescription
BPCBombPotChangedBPC 3 123Bomb pot state changed (state=3, ante=123)

Bomb Pot States:

  • 0 = Off
  • 1 = WaitGame
  • 2 = WaitPlayers
  • 3 = Active
  • 4 = Canceled

Special Cases

CodeEventExampleDescription
#SpecialCase# 1Special case 1 occurred

Chinese Poker Events

CodeEventExampleDescription
CHBChineseBatchCHB 1 2Hand 1 of 2 in batch
CHBSChineseBatchStartedCHBS 2Batch of 2 games started
CHBFChineseBatchFinishedCHBF 2 846,847Batch completed (game IDs)
CHPChinesePlayCHP 1 Qc;5s;5d 10h;6h #Seat 1 arranged cards (front;middle;back)
CHHChHandResCHH 6121 6Player 6121 finished with 6 points
CHRChP2PResCHR 6121 6158 6Player 6121 vs 6158: 6 points
CHQChPlrHandResCHQ 6121 2 1 4 6Player hand result (ID, handType, pts, bonus, extra)
CHFChineseFantasyLandCHF 3 1Seat 3 reached fantasyland #1
CHNChineseNaturalCHN 3Seat 3 made natural
CHSChineseSurrenderCHS 3Seat 3 surrendered
CHTAChineseTableLimitAppliedCHTA 2,3Limits applied to seats 2,3

Rummy Events

CodeEventExampleDescription
RBTRummyBatchRBT 1 2Game 1 of 2-game batch
RBSRummyBatchStartedRBS 22-game batch started
RBFRummyBatchFinishedRBF 22-game batch completed
RDGRummyDeadGameRDGDead game (deck exhausted twice)
RDURummyDeckUpsideDownRDUOpen deck flipped to closed
RDERummyDeclareRDE 4 8c;9c 6d;7d;8d...Seat 4 declared groups
RDIRummyDiscardRDI 1 5 3dSeat 1 discarded 3d
RDCRummyDrawFromCloseRDC 1 5 3dSeat 1 drew 3d from closed deck
RDORummyDrawFromOpenRDO 1 5 3dSeat 1 drew 3d from open deck
RDRRummyDropRDR 0Seat 0 dropped
RFIRummyFinishRFI 1 5 3dSeat 1 finished with 3d
RSRRummySeatResultRSR 0 20 -20 60Seat 0: 20 pts this deal, -20 won, 60 total

Big2 Events

CodeEventExampleDescription
B2PBig2PlayB2P 2 6d;7d;8dSeat 2 played 6d,7d,8d
B2RBig2SeatResultB2R 2 10Seat 2 finished with 10 points
B2BSBig2BatchStartedB2BS 22-round batch started
B2BFBig2BatchFinishedB2BF 22-round batch finished

Callbreak Events

CodeEventExampleDescription
CBDCallBreakBidCBD 1 3Seat 1 bid 3 tricks
CCRCallBreakCardsRedealCCRCards redealt
CBPCallBreakPlayCBP 2 33 10dSeat 2 played 10d (code 33)
CRRCallBreakRoundResultCRR 0 -40 4 3Seat 0: -4.0 pts, bid 4, took 3
CSRCallBreakSeatResultCSR 3 74Seat 3 finished with 7.4 points
CTWCallBreakTrickWinnerCTW 0Seat 0 won the trick

TeenPatti Events

CodeEventExampleDescription
TSCTeenPattiSeeCardsTSC 3Seat 3 looked at cards
TBDTeenPattiBlindTBD 1 200Seat 1 blind bet $2.00
TCATeenPattiChaalTCA 1 200Seat 1 chaal bet $2.00
TPPTeenPattiPackTPP 1Seat 1 packed
TSSTeenPattiSideShowTSS 1 300Seat 1 requested sideshow ($3)
TASTeenPattiAcceptShowTAS 1Seat 1 accepted show
TDSTeenPattiDeclineShowTDS 1Seat 1 declined show
TSHTeenPattiSeeCardsTSH 1Seat 1 saw cards