Commit Graph
19 Commits
Author SHA1 Message Date
mmintel 8baa217b11 Merge branch 'rake-merged' 2026-10-31 11:47:39 +01:00
mmintelandClaude Opus 5.5 b2002e186c Merge rake into main state: rake-aware charts with benchmark harness
Not on main: 7 tests fail, as they do on rake alone (generated_charts_plausibility,
pipeline_bluff, preflop_multi_advice). The rake charts contradict those specs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 10:48:56 +01:00
mmintelandClaude Opus 5.5 a69fc175ae Merge pokerfreak-shell into this repo: core and shell live under one root
One project had four root folders. The shell's history is kept, paths now point inside this
repo, and the boundary stays: src/ imports nothing from the shell, which only speaks the contract.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 10:48:33 +01:00
mmintelandClaude Opus 5.5 4fa0875765 Benchmark harness and mark detection: paired simulation, reader, benchmark binary
Secures work in progress so the rake branch and the shell repo can be merged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 10:36:11 +01:00
mmintelandClaude Opus 5.5 3d65e856f6 Rake-aware CFR and charts: rake rule, ante situation, regenerated preflop charts
Secures the worktree's uncommitted state before merging into main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 10:36:11 +01:00
mmintelandClaude Opus 5.5 643fed5f0a Tournament field on the wire: ICM-lite priced from the request, sampled above 10 players
The shell can now send the optional `tournament` field (payouts, stacks,
heroIndex, ante, level). The core read none of it, and the exact Harville
expansion could not price the real bubble (15-18 players). Fields above
MAX_PLAYERS are now priced by an exponential race sample with a fixed seed,
so the same request always gets the same answer; beyond MAX_FIELD the core
abstains. Malformed fields are an invalid request, unpriceable ones abstain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 09:49:49 +01:00
mmintelandClaude Opus 5.5 57c4e738fb MODULES.md: Testname engine_size_policy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 12:24:30 +01:00
mmintelandClaude Opus 5.5 8844b6a224 MODULES.md: grosse Runde mit Vorher-/Nachher-Zahlen (Probe, Groessen, Gedenkzeiten, sim je Tiefe, Bubble gegen Cash), 848 Tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 12:24:22 +01:00
mmintelandClaude Opus 5.5 ea50afd4f5 PLO4: Pot-Limit-Omaha mit vier Karten (Wire-Name "PLO4")
Variant::Plo4 mit vier Lochkarten, Omaha-Regel (genau zwei aus der Hand) und
Pot-Limit-Größen wie PLO5; Doppel-Board und Bomb Pot laufen über denselben Weg.
Vorflop eine eigene Vier-Karten-Handwertung (plo4_score, Perzentil-Tabelle aus
allen 270 725 Händen) statt der PLO5-Tabelle; Tests für Annahme/Ablehnung,
Omaha-Regel, Doppel-Board, Pot-Limit und die Kalibrierung gegen Equity.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 00:41:28 +01:00
mmintelandClaude Opus 5.5 d118d359b2 MODULES.md: 816 Tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 23:39:46 +01:00
mmintelandClaude Opus 5.5 ceb1b4e267 Vorflop-Rat wählt die Tabelle nach der Zahl der Gegner hinter dem Angreifer
cfr_advice liest die Mehrgegner-Tabelle (NLHE, 20-100 bb) für das erste
Open, den Verteidiger gegen ein Open ohne Caller und den Opener gegen eine
3-Bet. Ein Gegner liest das Ein-Verteidiger-Spiel, der Grund nennt die
Gegnerzahl. Sonst bleibt alles beim Bisherigen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 21:41:43 +01:00
mmintelandClaude Opus 5.5 fbb3c1312a Vorflop-CFR mit einem bis vier Verteidigern, Short-Deck-Charts belegt
Mehrere Verteidiger: Opener gegen die letzten k Plätze (k = 1..4), gleiche
Abstraktion, Chance-Sampling-CFR+ mit exaktem Card Removal, jede Annahme im
Kopf von generated_charts_multi.rs. Beleg: Abweichung gegen die
Ein-Verteidiger-Charts je Spot, Gegenprobe exakt (k <= 2) und gesampelt
(k = 3, 4), alle unter 0,01 bb.

Short Deck: Vollständigkeit aller Positionen und Randhände, alle
All-in-Entscheidungen gegen direkte Showdowns mit echten Karten geprüft
(0 falsch in 69 Knoten).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 21:05:55 +01:00
mmintelandClaude Opus 5.5 5efa6858f9 Spielstärke-Test: ganze Hände mit Seed gegen feste Gegner, bb/100 mit Intervall
Neues Modul `sim` (nicht Teil der Pipeline): NLHE-Tisch mit 2-10 Plätzen,
Side Pots und History, die Engine bekommt dieselbe Anfrage wie aus der Hülle.
Gegner: Calling Station, Folder, Zufall-legal. Duplicate-Messung über alle
Plätze, unverzerrte Luck-Korrektur je Boardkarte (exakt bis zwei fehlende
Karten), 95-%-Intervall.

tests/sim_strength.rs: Mechanik, Chip-Bilanz, Determinismus, kurzer Lauf
heads-up (< 20 s); langer Lauf mit 6-max hinter --ignored. Zahlen und
Schwellen in MODULES.md. 790 Tests grün, clippy sauber.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 18:21:00 +01:00
mmintelandClaude Opus 5.5 7a5357523b Doppel-Board und Run it twice als optionale Felder
- boardDouble (Form wie board): je Board entschieden, die bessere Bewertung
  (höhere Equity) gewinnt; Näherung offen dokumentiert (Topf geteilt, exakt
  wäre der Mittelwert). Ungleiche Länge, doppelte Karte -> ABSTAIN
- ritOffered -> rit (ACCEPT/DECLINE/ABSTAIN) und ritReason: annehmen über dem
  Bruchpunkt, ohne offenen Call fairer Anteil, ohne Equity ABSTAIN
- keine bestehenden Felder oder Typen geändert; Zusatzfelder werden nach der
  Spot-Prüfung gelesen
- Tests: benannte Referenzwerte, ein Board verbessert/das andere nicht,
  pipeline_extras_neutral zeigt bitgleiche Antworten ohne die Felder (779)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 17:30:01 +01:00
mmintelandClaude Opus 5.5 7f40fa49a0 CFR charts with both blinds as defenders, short deck tables
EP, MP, CO and BTN now play three-player games against small and big
blind (push/fold and open/call/3-bet trees, CFR+ for three players,
exploitability summed over all three best responses). Deal weights and
three-way shares are documented approximations. Short deck gets its own
equity table and charts from the same generator (--deck short).

Open width shrinks in EP/MP (e.g. EP 100bb 0.291 -> 0.249, MP 40bb
0.357 -> 0.293); frozen exploitability stays at 0-4 micro-bb (full) and
0-9 micro-bb (short). Lookup and advice cover SB vs open/jam, BB after
an SB call and the opener vs an SB 3-bet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 15:02:45 +01:00
mmintelandClaude Opus 5.5 50b58832e5 Spec: two blind defenders and short deck CFR charts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 13:48:51 +01:00
mmintelandClaude Opus 5.5 86dd0eb896 Docs: CFR charts, bluffing, history and aggression fields
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 13:27:54 +01:00
mmintelandClaude Opus 5.5 1ad6f76088 Bluffing and bluff catching driven by opponent frequencies
- exploit::fold_chance: documented foldToBet -> P(fold) map by bet size, per villain
- engine: two-branch EV for every raise (fold branch, called branch vs calling range)
- semibluffs first, pure bluffs heads-up above a fold and EV threshold
- betting ranges keep a bluff share (size, street, style or new profile.aggression)
- guards: no bluffs vs never-folders, no bluff catch vs ranges without bluffs
- steal width in unopened pots from how often the blinds fold
- combo-list sampling for narrow two-card ranges

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 13:11:38 +01:00
mmintelandClaude Opus 5.5 b7e2bc7190 Add module overview
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 12:03:56 +01:00