mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-15 16:42:41 +00:00
Add tip audit logging, CFR alignment tests, and multiway scenarios
Three confidence features for the poker tip system: - Tip audit table (holdem_tip_audit) logs every tip with full context for bulk review after real sessions - CFR alignment test validates all 32 scenarios against the trained 5M-iteration policy — rules engine never contradicts the bot's AI - 8 new multiway test scenarios covering all streets and key decisions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -401,7 +401,7 @@ func TestClassifyPreflopHand(t *testing.T) {
|
||||
for _, c := range cases {
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
ranks := [2]int{cardRankIndex(c.hole[0]), cardRankIndex(c.hole[1])}
|
||||
got := classifyPreflopHand(ranks, c.suited)
|
||||
got := classifyPreflopHand(ranks, c.suited, false)
|
||||
if got != c.want {
|
||||
t.Errorf("classify(%s) = %s, want %s", c.name, got, c.want)
|
||||
}
|
||||
@@ -409,6 +409,38 @@ func TestClassifyPreflopHand(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestClassifyPreflopHandHU(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
hi, lo int
|
||||
suited bool
|
||||
want string
|
||||
}{
|
||||
{"AA", 12, 12, false, "premium"},
|
||||
{"KK", 11, 11, false, "premium"},
|
||||
{"AKo", 12, 11, false, "premium"},
|
||||
{"TT", 8, 8, false, "strong"},
|
||||
{"ATo", 12, 8, false, "strong"},
|
||||
{"K8o", 11, 6, false, "playable"},
|
||||
{"A2o", 12, 0, false, "playable"},
|
||||
{"Q9o", 10, 7, false, "playable"},
|
||||
{"22", 0, 0, false, "playable"},
|
||||
{"K3o", 11, 1, false, "speculative"},
|
||||
{"T7o", 8, 5, false, "speculative"},
|
||||
{"72o", 5, 0, false, "trash"},
|
||||
{"93o", 7, 1, false, "trash"},
|
||||
}
|
||||
for _, c := range cases {
|
||||
t.Run(c.name+"_HU", func(t *testing.T) {
|
||||
ranks := [2]int{c.hi, c.lo}
|
||||
got := classifyPreflopHand(ranks, c.suited, true)
|
||||
if got != c.want {
|
||||
t.Errorf("classifyHU(%s) = %s, want %s", c.name, got, c.want)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// LLM rewrite guard — keeps action verbs
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user