Versions in this module Expand all Collapse all v0 v0.1.0 Oct 3, 2026 Changes in this version + const ActionBeaver + const ActionCubeSet + const ActionDouble + const ActionDrop + const ActionFinal + const ActionForfeit + const ActionGameOver + const ActionMatchOver + const ActionNull + const ActionPass + const ActionRaccoon + const ActionReserved + const ActionResignGame + const ActionResignMatch + const ActionSetPosition + const ActionSettle + const ActionTake + const EquityScale + const MaxAltsPerDecision + const MaxAnalyses + const MaxAnnotations + const MaxCoverage + const MaxDecisions + const MaxDrawings + const MaxFileSize + const MaxGames + const MaxMatchSignatures + const MaxPliesPerGame + const MaxSectionSize + const MaxSections + const MaxString + const MaxTotalPlies + const ProbabilityScale + const ReaderMajor + const ReaderMinor + var ErrNotOGXM = errors.New("ogxm: not an OGXM file") + var ErrVersion = errors.New("ogxm: unsupported version") + func DiceAction(d1, d2 int) int + func IsOGXM(data []byte) bool + type Alternative struct + CubelessEquity *float64 + Equity float64 + IsPlayed bool + Level *Level + Probs *Probabilities + RolloutSE *float64 + Steps []Step + type Analysis struct + Complete bool + CompletedAt *time.Time + Coverage []int + CubeEfficiency *float64 + Currency Currency + Decisions []Decision + DurationMS *int + EngineBuild string + ID [16]byte + Level *Level + METID string + MatchDigest *[32]byte + ModelDigest *[32]byte + ModelID string + ModelName string + Producer *int + Signature *Signature + Sources [][16]byte + StartedAt *time.Time + Tables string + type Annotation struct + AltIndex *int + Analysis *[16]byte + At *time.Time + Author string + Drawings int + Key *string + Kind *DecisionKind + Lang string + Ref int + Scope int + Value string + type Board [26]int8 + func Opening(v Variant) (Board, bool) + func (b *Board) Count(seat Seat) int + func (b Board) Apply(seat Seat, steps []Step) (Board, error) + type CheckerDecision struct + Alternatives []Alternative + AlternativesTotal *int + BestEquity *float64 + EquityLoss *float64 + Level *Level + PositionTags *uint64 + ProducerRef *int + type Checksum struct + Algorithm int + Digest []byte + Verified bool + type CubeDecision struct + CubefulTakeValue *float64 + Currency *Currency + DoublePassEquity *float64 + DoubleTakeEquity *float64 + EquityLoss *float64 + IsFreeCube bool + IsOptional bool + Level *Level + NoDoubleEquity *float64 + Probs *Probabilities + ProducerRef *int + TakePoint *float64 + Verdict Verdict + WindowSearched bool + type Currency int + const CubefulMatch + const CubefulMoney + const Cubeless + const CurrencyUnset + type Decision struct + Checker *CheckerDecision + Cube *CubeDecision + Kind DecisionKind + PlyRef int + Resign *ResignDecision + Roll *RollDecision + type DecisionKind int + const KindChecker + const KindCube + const KindResign + const KindRoll + type File struct + Analyses []Analysis + Annotations []Annotation + Checksum *Checksum + Clock []byte + Games []Game + Match *Match + MatchSignatures []Signature + MinReaderMajor uint16 + MinReaderMinor uint16 + VersionMajor uint16 + VersionMinor uint16 + Video []byte + func Parse(data []byte) (*File, error) + func ParseFile(path string) (*File, error) + func ParseReader(r io.Reader) (*File, error) + func (f *File) MatchDigest() [32]byte + func (f *File) PlyCount() int + func (f *File) Replay() []GameReplay + func (f *File) Shape() Shape + func (f *File) VerifySignatures(keys KeyLookup) []SignatureReport + type FormatError struct + Msg string + Offset int + Section string + func (e *FormatError) Error() string + type Game struct + AutoDoubles int + InitialBoard *Board + InitialCubeOwner Seat + InitialCubeValue int + IsLastGame bool + Plies []Ply + PointsWon *int + Termination *int + Winner *Seat + type GameReplay struct + Crawford bool + Err error + FailedAt int + Plies []PlyState + ScoreBefore [2]int + type KeyLookup func(keyID string) ed25519.PublicKey + type Level struct + CheckerPly *int + CubePly *int + NoRollout bool + Preset *string + Rollout *Rollout + func (l *Level) Effective(parent *Level) *Level + type Match struct + BlackName string + BlackProfile *Player + City string + CompletedAt *time.Time + Country string + CrawfordBeforeStart bool + CubeLimit int + DatePrecision *int + Event string + EventURL string + EventYear int + Length int + MatchRef string + PlayerSeat *Seat + Rated bool + Result int + Round int + Rules Rules + ScoreFinal *[2]int + ScoreStart [2]int + Site string + Source *int + Stage string + StartedAt *time.Time + Table string + Variant Variant + WhiteName string + WhiteProfile *Player + type Player struct + Country string + Kind *int + Rating *float64 + RatingSystem string + UserID string + type Ply struct + Action int + Board *Board + CubeOwner *Seat + CubeValue *int + ExtraDice *[2]int + Illegal bool + Ref int + ResignValue *int + Seat Seat + SettleValue *float64 + Steps []Step + func (p Ply) Dice() [2]int + func (p Ply) IsDiceAction() bool + type PlyState struct + After ogid.OGID + Before ogid.OGID + UnplayedRoll bool + type Probabilities struct + BackgammonLoss float64 + BackgammonWin float64 + GammonLoss float64 + GammonWin float64 + Win float64 + type ResignDecision struct + CorrectValue *int + EquityLoss *float64 + Level *Level + Probs *Probabilities + ProducerRef *int + ResignError *float64 + TakeResignError *float64 + type RollDecision struct + Level *Level + Luck float64 + ProducerRef *int + type Rollout struct + BudgetMS *int + MatchPolicy *int + MovePly *int + Seed *uint64 + Trials *int + TruncationDepth *int + VarianceReduction *int + type Rules uint64 + const RuleAutoDoubles + const RuleBeavers + const RuleCrawford + const RuleJacoby + const RuleRaccoons + type Seat int + const Black + const Centred + const White + func (s Seat) Opponent() Seat + func (s Seat) String() string + type Shape int + const ShapeAnalysis + const ShapeCombined + const ShapeMatch + type Signature struct + Algorithm int + Covers uint64 + KeyID string + PublicKey []byte + Signature []byte + SignedAt *time.Time + type SignatureReport struct + Analysis int + KeyID string + Status SignatureStatus + type SignatureStatus int + const Invalid + const Unverifiable + const Valid + func (s SignatureStatus) String() string + type Step struct + From int + Pips int + type Variant int + const Backgammon + const Hypergammon + const Longgammon + const Nackgammon + func (v Variant) Checkers() int + type Verdict int + const VerdictBeaver + const VerdictDouble + const VerdictNoDouble + const VerdictPass + const VerdictRaccoon + const VerdictTake + const VerdictTooGood