Versions in this module Expand all Collapse all v1 v1.1.2 Aug 11, 2026 v1.1.1 Aug 4, 2026 v1.1.0 Aug 3, 2026 Changes in this version + const ChoiceTai + const ChoiceTriple + const ChoiceXiu + const OpCodeBet + const OpCodeBetAck + const OpCodeRoundResult + const OpCodeStateUpdate + const PhaseBetting + const PhaseIntermission + const PhaseResult + const PhaseRolling + func NewTaiXiuMatch() runtime.Match + type BetAckResponse struct + Amount int64 + Balance int64 + Choice string + Error string + Success bool + type BetRequest struct + Amount int64 + Choice string + type PlayerBet struct + Amount int64 + Choice string + SessionID string + UserID string + type PlayerPayout struct + BetAmount int64 + Choice string + NetProfit int64 + NewBalance int64 + Payout int64 + UserID string + type RoundResultBroadcast struct + Dice [3]int + Payouts []PlayerPayout + RoundNumber int64 + Sum int + WinningSide string + type StateUpdateBroadcast struct + ActivePlayers int + Phase string + RemainingTicks int + RoundNumber int64 + TotalPoolTai int64 + TotalPoolXiu int64 + type TaiXiuMatch struct + func (m *TaiXiuMatch) MatchInit(ctx context.Context, logger runtime.Logger, db *sql.DB, ...) (interface{}, int, string) + func (m *TaiXiuMatch) MatchJoin(ctx context.Context, logger runtime.Logger, db *sql.DB, ...) interface{} + func (m *TaiXiuMatch) MatchJoinAttempt(ctx context.Context, logger runtime.Logger, db *sql.DB, ...) (interface{}, bool, string) + func (m *TaiXiuMatch) MatchLeave(ctx context.Context, logger runtime.Logger, db *sql.DB, ...) interface{} + func (m *TaiXiuMatch) MatchLoop(ctx context.Context, logger runtime.Logger, db *sql.DB, ...) interface{} + func (m *TaiXiuMatch) MatchSignal(ctx context.Context, logger runtime.Logger, db *sql.DB, ...) (interface{}, string) + func (m *TaiXiuMatch) MatchTerminate(ctx context.Context, logger runtime.Logger, db *sql.DB, ...) interface{} + type TaiXiuState struct + Bets map[string]*PlayerBet + BettingTicks int + IntermissionTicks int + LastDice [3]int + LastPayouts []PlayerPayout + LastSum int + LastWinning string + Phase string + PhaseTicks int + Presences map[string]runtime.Presence + ResultTicks int + RollingTicks int + RoundNumber int64 + TotalPoolTai int64 + TotalPoolXiu int64