Die 10 roten Tests des Live-Stands: 1 echter Fehler, 9 veraltet
- preflop_plo4: echter Fehler.015baff(PLO5-Kalibrierung) aenderte die geteilten Gewichte, die plo4_score mitbenutzt; die PLO4-Perzentiltabelle war veraltet (233 statt 231 Stufen). Neu erzeugt (print_table). - cfr_multi / generated_charts_reproduce "frozen file": Kommentartabellen im Repo hatten zusammengezogene Leerzeichen; Renderer-Ausgabe zurueckgeschrieben (git diff -w leer, Zahlen unveraendert). - generated_charts_plausibility x3: verglichen gegen handkopierte Werte bzw. Nash ohne Antes, die Tabellen rechnen seit3d65e85mit Rake+Antes. Jetzt: Ein-Verteidiger-Bezug = BASELINE derselben Umgebung; HU-Nash gegen dasselbe Spiel ohne Rake/Antes geloest, ausgelieferte Tabelle mindestens so breit; Positions-Teilmengen: eine indifferente Mischung (98s BTN 40bb 30 %) erlaubt. - preflop_multi_advice x3: die festen Grenzhaende (Q8o, KTo, 77) liegen nach dem Neurechnen innen; Grenzhaende werden ueber alle 169 Klassen gesucht. - pipeline_bluff: "Steal weiter gegen Nits" ist abgeschaltet, nicht kaputt: read_gate verwirft Nit-Reads (earned_trust 0, gemessen -50 bb/100). Test prueft jetzt: gegen Nits blind, gegen Stations enger. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -40,56 +40,56 @@
|
||||
//! Convergence per spot (`iterations`, `stable_since` = argmax chart final from that iteration,
|
||||
//! exploitability in micro-bb at N/100, N/20, N/5, N/2, N):
|
||||
//!
|
||||
//! push EP 5 iterations 4000 stable_since 180 exploitability 767 / 35 / 2 / 0 / 0
|
||||
//! push EP 8 iterations 4000 stable_since 180 exploitability 826 / 34 / 2 / 0 / 0
|
||||
//! push EP 10 iterations 4000 stable_since 120 exploitability 965 / 41 / 3 / 0 / 0
|
||||
//! push EP 12 iterations 4000 stable_since 300 exploitability 1169 / 53 / 5 / 1 / 0
|
||||
//! push EP 15 iterations 4000 stable_since 140 exploitability 1546 / 64 / 4 / 1 / 0
|
||||
//! push EP 20 iterations 4000 stable_since 20 exploitability 2120 / 86 / 5 / 1 / 0
|
||||
//! push EP 25 iterations 4000 stable_since 120 exploitability 2814 / 115 / 7 / 1 / 0
|
||||
//! push MP 5 iterations 4000 stable_since 220 exploitability 1145 / 51 / 3 / 1 / 0
|
||||
//! push MP 8 iterations 4000 stable_since 260 exploitability 1042 / 47 / 3 / 1 / 0
|
||||
//! push MP 10 iterations 4000 stable_since 100 exploitability 1294 / 58 / 4 / 1 / 0
|
||||
//! push MP 12 iterations 4000 stable_since 80 exploitability 1457 / 60 / 4 / 1 / 0
|
||||
//! push MP 15 iterations 4000 stable_since 220 exploitability 1734 / 78 / 6 / 2 / 0
|
||||
//! push MP 20 iterations 4000 stable_since 140 exploitability 2338 / 110 / 8 / 1 / 0
|
||||
//! push MP 25 iterations 4000 stable_since 120 exploitability 3032 / 162 / 10 / 2 / 0
|
||||
//! push CO 5 iterations 4000 stable_since 200 exploitability 1587 / 71 / 4 / 1 / 0
|
||||
//! push CO 8 iterations 4000 stable_since 860 exploitability 1499 / 62 / 5 / 1 / 0
|
||||
//! push CO 10 iterations 4000 stable_since 80 exploitability 1866 / 81 / 5 / 1 / 0
|
||||
//! push CO 12 iterations 4000 stable_since 820 exploitability 1913 / 81 / 6 / 1 / 0
|
||||
//! push CO 15 iterations 4000 stable_since 340 exploitability 2413 / 110 / 9 / 2 / 0
|
||||
//! push CO 20 iterations 4000 stable_since 200 exploitability 3094 / 145 / 10 / 2 / 0
|
||||
//! push CO 25 iterations 4000 stable_since 1220 exploitability 3710 / 160 / 14 / 3 / 0
|
||||
//! push BTN 5 iterations 4000 stable_since 320 exploitability 2226 / 108 / 7 / 1 / 0
|
||||
//! push BTN 8 iterations 4000 stable_since 80 exploitability 2142 / 102 / 6 / 1 / 0
|
||||
//! push BTN 10 iterations 4000 stable_since 1440 exploitability 2447 / 125 / 12 / 3 / 1
|
||||
//! push BTN 12 iterations 4000 stable_since 180 exploitability 2835 / 128 / 10 / 2 / 0
|
||||
//! push BTN 15 iterations 4000 stable_since 160 exploitability 3445 / 152 / 10 / 2 / 0
|
||||
//! push BTN 20 iterations 4000 stable_since 420 exploitability 4204 / 203 / 15 / 2 / 0
|
||||
//! push BTN 25 iterations 4000 stable_since 140 exploitability 6214 / 291 / 18 / 3 / 0
|
||||
//! push SB 5 iterations 8000 stable_since 480 exploitability 408 / 19 / 1 / 0 / 0
|
||||
//! push SB 8 iterations 8000 stable_since 360 exploitability 564 / 26 / 2 / 0 / 0
|
||||
//! push SB 10 iterations 8000 stable_since 2440 exploitability 629 / 26 / 2 / 0 / 0
|
||||
//! push SB 12 iterations 8000 stable_since 160 exploitability 582 / 30 / 2 / 0 / 0
|
||||
//! push SB 15 iterations 8000 stable_since 3240 exploitability 634 / 30 / 3 / 1 / 0
|
||||
//! push SB 20 iterations 8000 stable_since 80 exploitability 752 / 33 / 2 / 1 / 0
|
||||
//! push SB 25 iterations 8000 stable_since 80 exploitability 925 / 40 / 3 / 1 / 0
|
||||
//! open EP 20 iterations 16000 stable_since 2720 exploitability 1203 / 59 / 5 / 1 / 0
|
||||
//! open EP 40 iterations 16000 stable_since 14800 exploitability 1833 / 106 / 10 / 2 / 1
|
||||
//! open EP 100 iterations 16000 stable_since 2400 exploitability 4828 / 303 / 26 / 5 / 3
|
||||
//! open MP 20 iterations 16000 stable_since 1840 exploitability 1627 / 79 / 6 / 1 / 0
|
||||
//! open MP 40 iterations 16000 stable_since 6240 exploitability 2303 / 160 / 16 / 3 / 4
|
||||
//! open MP 100 iterations 16000 stable_since 7120 exploitability 6063 / 352 / 33 / 6 / 2
|
||||
//! open CO 20 iterations 16000 stable_since 3920 exploitability 2238 / 136 / 9 / 2 / 0
|
||||
//! open CO 40 iterations 16000 stable_since 14480 exploitability 3126 / 225 / 23 / 4 / 2
|
||||
//! open CO 100 iterations 16000 stable_since 11520 exploitability 7964 / 471 / 44 / 10 / 5
|
||||
//! open BTN 20 iterations 16000 stable_since 2240 exploitability 2725 / 149 / 13 / 3 / 1
|
||||
//! open BTN 40 iterations 16000 stable_since 1360 exploitability 3719 / 261 / 20 / 3 / 2
|
||||
//! open BTN 100 iterations 16000 stable_since 9760 exploitability 10238 / 621 / 60 / 16 / 5
|
||||
//! open SB 20 iterations 20000 stable_since 1900 exploitability 1377 / 95 / 8 / 1 / 0
|
||||
//! open SB 40 iterations 20000 stable_since 18000 exploitability 2052 / 176 / 16 / 3 / 2
|
||||
//! open SB 100 iterations 20000 stable_since 11000 exploitability 6877 / 459 / 53 / 12 / 4
|
||||
//! push EP 5 iterations 4000 stable_since 180 exploitability 767 / 35 / 2 / 0 / 0
|
||||
//! push EP 8 iterations 4000 stable_since 180 exploitability 826 / 34 / 2 / 0 / 0
|
||||
//! push EP 10 iterations 4000 stable_since 120 exploitability 965 / 41 / 3 / 0 / 0
|
||||
//! push EP 12 iterations 4000 stable_since 300 exploitability 1169 / 53 / 5 / 1 / 0
|
||||
//! push EP 15 iterations 4000 stable_since 140 exploitability 1546 / 64 / 4 / 1 / 0
|
||||
//! push EP 20 iterations 4000 stable_since 20 exploitability 2120 / 86 / 5 / 1 / 0
|
||||
//! push EP 25 iterations 4000 stable_since 120 exploitability 2814 / 115 / 7 / 1 / 0
|
||||
//! push MP 5 iterations 4000 stable_since 220 exploitability 1145 / 51 / 3 / 1 / 0
|
||||
//! push MP 8 iterations 4000 stable_since 260 exploitability 1042 / 47 / 3 / 1 / 0
|
||||
//! push MP 10 iterations 4000 stable_since 100 exploitability 1294 / 58 / 4 / 1 / 0
|
||||
//! push MP 12 iterations 4000 stable_since 80 exploitability 1457 / 60 / 4 / 1 / 0
|
||||
//! push MP 15 iterations 4000 stable_since 220 exploitability 1734 / 78 / 6 / 2 / 0
|
||||
//! push MP 20 iterations 4000 stable_since 140 exploitability 2338 / 110 / 8 / 1 / 0
|
||||
//! push MP 25 iterations 4000 stable_since 120 exploitability 3032 / 162 / 10 / 2 / 0
|
||||
//! push CO 5 iterations 4000 stable_since 200 exploitability 1587 / 71 / 4 / 1 / 0
|
||||
//! push CO 8 iterations 4000 stable_since 860 exploitability 1499 / 62 / 5 / 1 / 0
|
||||
//! push CO 10 iterations 4000 stable_since 80 exploitability 1866 / 81 / 5 / 1 / 0
|
||||
//! push CO 12 iterations 4000 stable_since 820 exploitability 1913 / 81 / 6 / 1 / 0
|
||||
//! push CO 15 iterations 4000 stable_since 340 exploitability 2413 / 110 / 9 / 2 / 0
|
||||
//! push CO 20 iterations 4000 stable_since 200 exploitability 3094 / 145 / 10 / 2 / 0
|
||||
//! push CO 25 iterations 4000 stable_since 1220 exploitability 3710 / 160 / 14 / 3 / 0
|
||||
//! push BTN 5 iterations 4000 stable_since 320 exploitability 2226 / 108 / 7 / 1 / 0
|
||||
//! push BTN 8 iterations 4000 stable_since 80 exploitability 2142 / 102 / 6 / 1 / 0
|
||||
//! push BTN 10 iterations 4000 stable_since 1440 exploitability 2447 / 125 / 12 / 3 / 1
|
||||
//! push BTN 12 iterations 4000 stable_since 180 exploitability 2835 / 128 / 10 / 2 / 0
|
||||
//! push BTN 15 iterations 4000 stable_since 160 exploitability 3445 / 152 / 10 / 2 / 0
|
||||
//! push BTN 20 iterations 4000 stable_since 420 exploitability 4204 / 203 / 15 / 2 / 0
|
||||
//! push BTN 25 iterations 4000 stable_since 140 exploitability 6214 / 291 / 18 / 3 / 0
|
||||
//! push SB 5 iterations 8000 stable_since 480 exploitability 408 / 19 / 1 / 0 / 0
|
||||
//! push SB 8 iterations 8000 stable_since 360 exploitability 564 / 26 / 2 / 0 / 0
|
||||
//! push SB 10 iterations 8000 stable_since 2440 exploitability 629 / 26 / 2 / 0 / 0
|
||||
//! push SB 12 iterations 8000 stable_since 160 exploitability 582 / 30 / 2 / 0 / 0
|
||||
//! push SB 15 iterations 8000 stable_since 3240 exploitability 634 / 30 / 3 / 1 / 0
|
||||
//! push SB 20 iterations 8000 stable_since 80 exploitability 752 / 33 / 2 / 1 / 0
|
||||
//! push SB 25 iterations 8000 stable_since 80 exploitability 925 / 40 / 3 / 1 / 0
|
||||
//! open EP 20 iterations 16000 stable_since 2720 exploitability 1203 / 59 / 5 / 1 / 0
|
||||
//! open EP 40 iterations 16000 stable_since 14800 exploitability 1833 / 106 / 10 / 2 / 1
|
||||
//! open EP 100 iterations 16000 stable_since 2400 exploitability 4828 / 303 / 26 / 5 / 3
|
||||
//! open MP 20 iterations 16000 stable_since 1840 exploitability 1627 / 79 / 6 / 1 / 0
|
||||
//! open MP 40 iterations 16000 stable_since 6240 exploitability 2303 / 160 / 16 / 3 / 4
|
||||
//! open MP 100 iterations 16000 stable_since 7120 exploitability 6063 / 352 / 33 / 6 / 2
|
||||
//! open CO 20 iterations 16000 stable_since 3920 exploitability 2238 / 136 / 9 / 2 / 0
|
||||
//! open CO 40 iterations 16000 stable_since 14480 exploitability 3126 / 225 / 23 / 4 / 2
|
||||
//! open CO 100 iterations 16000 stable_since 11520 exploitability 7964 / 471 / 44 / 10 / 5
|
||||
//! open BTN 20 iterations 16000 stable_since 2240 exploitability 2725 / 149 / 13 / 3 / 1
|
||||
//! open BTN 40 iterations 16000 stable_since 1360 exploitability 3719 / 261 / 20 / 3 / 2
|
||||
//! open BTN 100 iterations 16000 stable_since 9760 exploitability 10238 / 621 / 60 / 16 / 5
|
||||
//! open SB 20 iterations 20000 stable_since 1900 exploitability 1377 / 95 / 8 / 1 / 0
|
||||
//! open SB 40 iterations 20000 stable_since 18000 exploitability 2052 / 176 / 16 / 3 / 2
|
||||
//! open SB 100 iterations 20000 stable_since 11000 exploitability 6877 / 459 / 53 / 12 / 4
|
||||
//!
|
||||
//! Equity table: seed 5786926807299543621, 60000 samples per class pair. CFR seed 1128682027.
|
||||
|
||||
|
||||
@@ -46,48 +46,48 @@
|
||||
//! `exact` (k <= 2), `in`/`out` sampled; `drift` = mean change of the open chart between N/2 and N.
|
||||
//!
|
||||
//! seat bb defenders width 1-def diff |d| 2-tab exact in out drift
|
||||
//! EP 20 BB 370 371 -1 4 - 1094 1106 1105 2
|
||||
//! EP 40 BB 378 382 -4 8 - 1445 1449 1411 1
|
||||
//! EP 100 BB 373 373 +0 5 - 1918 1934 1938 2
|
||||
//! EP 20 SB+BB 286 371 -85 87 3 2051 2092 2073 1
|
||||
//! EP 40 SB+BB 303 382 -79 80 4 2666 2812 2565 1
|
||||
//! EP 100 SB+BB 301 373 -72 73 4 3387 3538 3230 1
|
||||
//! EP 20 BTN+SB+BB 241 371 -130 131 - - 3097 3056 2
|
||||
//! EP 40 BTN+SB+BB 259 382 -123 125 - - 3916 3595 2
|
||||
//! EP 100 BTN+SB+BB 249 373 -124 125 - - 4812 4283 2
|
||||
//! EP 20 CO+BTN+SB+BB 213 371 -158 160 - - 4259 4112 2
|
||||
//! EP 40 CO+BTN+SB+BB 233 382 -149 150 - - 5573 4992 3
|
||||
//! EP 100 CO+BTN+SB+BB 218 373 -155 157 - - 6326 5829 3
|
||||
//! MP 20 BB 425 424 +1 4 - 1378 1385 1374 2
|
||||
//! MP 40 BB 454 459 -5 9 - 1998 2007 1984 2
|
||||
//! MP 100 BB 444 448 -4 8 - 2657 2718 2689 3
|
||||
//! MP 20 SB+BB 311 424 -113 115 5 2508 2606 2455 2
|
||||
//! MP 40 SB+BB 342 459 -117 119 8 3457 3895 3092 1
|
||||
//! MP 100 SB+BB 330 448 -118 120 7 4396 4719 4106 2
|
||||
//! MP 20 BTN+SB+BB 257 424 -167 169 - - 3722 3644 2
|
||||
//! MP 40 BTN+SB+BB 277 459 -182 184 - - 4873 4540 2
|
||||
//! MP 100 BTN+SB+BB 265 448 -183 184 - - 6031 5341 2
|
||||
//! MP 20 CO+BTN+SB+BB 228 424 -196 198 - - 5158 5094 5
|
||||
//! MP 40 CO+BTN+SB+BB 245 459 -214 216 - - 6481 5967 2
|
||||
//! MP 100 CO+BTN+SB+BB 231 448 -217 218 - - 8085 7267 4
|
||||
//! CO 20 BB 495 497 -2 6 - 1765 1778 1741 2
|
||||
//! CO 40 BB 522 523 -1 5 - 2579 2664 2346 2
|
||||
//! CO 100 BB 513 521 -8 11 - 3594 3710 3599 2
|
||||
//! CO 20 SB+BB 347 497 -150 151 6 3079 3171 3131 3
|
||||
//! CO 40 SB+BB 379 523 -144 146 8 4343 4722 3936 2
|
||||
//! CO 100 SB+BB 371 521 -150 151 9 5701 6058 5355 2
|
||||
//! CO 20 BTN+SB+BB 276 497 -221 223 - - 4451 4436 3
|
||||
//! CO 40 BTN+SB+BB 298 523 -225 227 - - 6055 5680 2
|
||||
//! CO 100 BTN+SB+BB 289 521 -232 233 - - 7698 6751 3
|
||||
//! BTN 20 BB 566 564 +2 10 - 2287 2303 2227 3
|
||||
//! BTN 40 BB 607 608 -1 4 - 3451 3612 3209 2
|
||||
//! BTN 100 BB 600 604 -4 7 - 5062 5199 4904 2
|
||||
//! BTN 20 SB+BB 379 564 -185 187 5 3769 3876 3804 3
|
||||
//! BTN 40 SB+BB 419 608 -189 190 6 5459 5911 5305 4
|
||||
//! BTN 100 SB+BB 413 604 -191 193 9 7467 8083 7064 3
|
||||
//! SB 20 BB 543 545 -2 6 - 2659 2650 2607 3
|
||||
//! SB 40 BB 588 587 +1 8 - 3860 4125 2681 2
|
||||
//! SB 100 BB 566 572 -6 12 - 5823 5970 5531 4
|
||||
//! EP 20 BB 370 371 -1 4 - 1094 1106 1105 2
|
||||
//! EP 40 BB 378 382 -4 8 - 1445 1449 1411 1
|
||||
//! EP 100 BB 373 373 +0 5 - 1918 1934 1938 2
|
||||
//! EP 20 SB+BB 286 371 -85 87 3 2051 2092 2073 1
|
||||
//! EP 40 SB+BB 303 382 -79 80 4 2666 2812 2565 1
|
||||
//! EP 100 SB+BB 301 373 -72 73 4 3387 3538 3230 1
|
||||
//! EP 20 BTN+SB+BB 241 371 -130 131 - - 3097 3056 2
|
||||
//! EP 40 BTN+SB+BB 259 382 -123 125 - - 3916 3595 2
|
||||
//! EP 100 BTN+SB+BB 249 373 -124 125 - - 4812 4283 2
|
||||
//! EP 20 CO+BTN+SB+BB 213 371 -158 160 - - 4259 4112 2
|
||||
//! EP 40 CO+BTN+SB+BB 233 382 -149 150 - - 5573 4992 3
|
||||
//! EP 100 CO+BTN+SB+BB 218 373 -155 157 - - 6326 5829 3
|
||||
//! MP 20 BB 425 424 +1 4 - 1378 1385 1374 2
|
||||
//! MP 40 BB 454 459 -5 9 - 1998 2007 1984 2
|
||||
//! MP 100 BB 444 448 -4 8 - 2657 2718 2689 3
|
||||
//! MP 20 SB+BB 311 424 -113 115 5 2508 2606 2455 2
|
||||
//! MP 40 SB+BB 342 459 -117 119 8 3457 3895 3092 1
|
||||
//! MP 100 SB+BB 330 448 -118 120 7 4396 4719 4106 2
|
||||
//! MP 20 BTN+SB+BB 257 424 -167 169 - - 3722 3644 2
|
||||
//! MP 40 BTN+SB+BB 277 459 -182 184 - - 4873 4540 2
|
||||
//! MP 100 BTN+SB+BB 265 448 -183 184 - - 6031 5341 2
|
||||
//! MP 20 CO+BTN+SB+BB 228 424 -196 198 - - 5158 5094 5
|
||||
//! MP 40 CO+BTN+SB+BB 245 459 -214 216 - - 6481 5967 2
|
||||
//! MP 100 CO+BTN+SB+BB 231 448 -217 218 - - 8085 7267 4
|
||||
//! CO 20 BB 495 497 -2 6 - 1765 1778 1741 2
|
||||
//! CO 40 BB 522 523 -1 5 - 2579 2664 2346 2
|
||||
//! CO 100 BB 513 521 -8 11 - 3594 3710 3599 2
|
||||
//! CO 20 SB+BB 347 497 -150 151 6 3079 3171 3131 3
|
||||
//! CO 40 SB+BB 379 523 -144 146 8 4343 4722 3936 2
|
||||
//! CO 100 SB+BB 371 521 -150 151 9 5701 6058 5355 2
|
||||
//! CO 20 BTN+SB+BB 276 497 -221 223 - - 4451 4436 3
|
||||
//! CO 40 BTN+SB+BB 298 523 -225 227 - - 6055 5680 2
|
||||
//! CO 100 BTN+SB+BB 289 521 -232 233 - - 7698 6751 3
|
||||
//! BTN 20 BB 566 564 +2 10 - 2287 2303 2227 3
|
||||
//! BTN 40 BB 607 608 -1 4 - 3451 3612 3209 2
|
||||
//! BTN 100 BB 600 604 -4 7 - 5062 5199 4904 2
|
||||
//! BTN 20 SB+BB 379 564 -185 187 5 3769 3876 3804 3
|
||||
//! BTN 40 SB+BB 419 608 -189 190 6 5459 5911 5305 4
|
||||
//! BTN 100 SB+BB 413 604 -191 193 9 7467 8083 7064 3
|
||||
//! SB 20 BB 543 545 -2 6 - 2659 2650 2607 3
|
||||
//! SB 40 BB 588 587 +1 8 - 3860 4125 2681 2
|
||||
//! SB 100 BB 566 572 -6 12 - 5823 5970 5531 4
|
||||
|
||||
use crate::cfr::frozen_multi::{BaselineSpot, MultiRow, MultiSpot};
|
||||
use crate::cfr::seat::Seat;
|
||||
|
||||
@@ -6,29 +6,29 @@
|
||||
//! (`cargo test --release --test preflop_plo4 -- --ignored --nocapture print_table`).
|
||||
|
||||
pub const SCORE_MIN: i32 = -60;
|
||||
pub const PERCENTILE_BY_SCORE: [f64; 233] = [
|
||||
pub const PERCENTILE_BY_SCORE: [f64; 231] = [
|
||||
1.00000, 0.99999, 0.99999, 0.99999, 0.99999, 0.99999, 0.99999, 0.99999, 0.99998, 0.99998,
|
||||
0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99997, 0.99997, 0.99997,
|
||||
0.99997, 0.99997, 0.99997, 0.99997, 0.99997, 0.99997, 0.99997, 0.99997, 0.99997, 0.99997,
|
||||
0.99997, 0.99997, 0.99996, 0.99994, 0.99991, 0.99989, 0.99986, 0.99980, 0.99973, 0.99969,
|
||||
0.99965, 0.99958, 0.99946, 0.99926, 0.99908, 0.99894, 0.99873, 0.99847, 0.99830, 0.99813,
|
||||
0.99796, 0.99777, 0.99756, 0.99738, 0.99722, 0.99707, 0.99685, 0.99665, 0.99648, 0.99622,
|
||||
0.99577, 0.99532, 0.99483, 0.99430, 0.99367, 0.99280, 0.99161, 0.98986, 0.98694, 0.98312,
|
||||
0.97838, 0.97232, 0.96482, 0.95493, 0.94265, 0.92970, 0.91474, 0.89729, 0.87845, 0.85922,
|
||||
0.84058, 0.82205, 0.80289, 0.78129, 0.75890, 0.73603, 0.71252, 0.68911, 0.66480, 0.63956,
|
||||
0.61410, 0.58940, 0.56456, 0.53974, 0.51591, 0.49405, 0.47357, 0.45315, 0.43260, 0.41181,
|
||||
0.39109, 0.37136, 0.35270, 0.33396, 0.31537, 0.29783, 0.28199, 0.26744, 0.25372, 0.24084,
|
||||
0.22927, 0.21840, 0.20775, 0.19765, 0.18788, 0.17853, 0.16909, 0.15977, 0.15164, 0.14365,
|
||||
0.13552, 0.12785, 0.12031, 0.11340, 0.10735, 0.10209, 0.09748, 0.09262, 0.08785, 0.08352,
|
||||
0.07988, 0.07675, 0.07354, 0.07041, 0.06720, 0.06409, 0.06091, 0.05765, 0.05449, 0.05176,
|
||||
0.04918, 0.04640, 0.04362, 0.04093, 0.03875, 0.03686, 0.03503, 0.03332, 0.03185, 0.03070,
|
||||
0.02948, 0.02775, 0.02538, 0.02292, 0.02098, 0.01941, 0.01785, 0.01615, 0.01458, 0.01330,
|
||||
0.01213, 0.01093, 0.00970, 0.00880, 0.00818, 0.00765, 0.00716, 0.00687, 0.00672, 0.00652,
|
||||
0.00627, 0.00595, 0.00570, 0.00536, 0.00496, 0.00442, 0.00385, 0.00339, 0.00306, 0.00279,
|
||||
0.00254, 0.00230, 0.00203, 0.00182, 0.00162, 0.00140, 0.00120, 0.00104, 0.00092, 0.00082,
|
||||
0.00071, 0.00064, 0.00062, 0.00059, 0.00058, 0.00055, 0.00053, 0.00051, 0.00043, 0.00033,
|
||||
0.00028, 0.00024, 0.00022, 0.00020, 0.00018, 0.00018, 0.00017, 0.00016, 0.00011, 0.00007,
|
||||
0.00007, 0.00007, 0.00007, 0.00007, 0.00006, 0.00004, 0.00004, 0.00004, 0.00004, 0.00004,
|
||||
0.00004, 0.00004, 0.00003, 0.00002, 0.00002, 0.00002, 0.00002, 0.00002, 0.00002, 0.00002,
|
||||
0.00002, 0.00002, 0.00001,
|
||||
0.99997, 0.99996, 0.99994, 0.99991, 0.99989, 0.99986, 0.99980, 0.99973, 0.99969, 0.99962,
|
||||
0.99954, 0.99943, 0.99924, 0.99905, 0.99889, 0.99865, 0.99839, 0.99822, 0.99805, 0.99782,
|
||||
0.99760, 0.99746, 0.99731, 0.99709, 0.99692, 0.99675, 0.99658, 0.99640, 0.99614, 0.99573,
|
||||
0.99528, 0.99487, 0.99434, 0.99355, 0.99249, 0.99105, 0.98926, 0.98697, 0.98362, 0.97944,
|
||||
0.97372, 0.96580, 0.95685, 0.94610, 0.93278, 0.91891, 0.90387, 0.88685, 0.86814, 0.84793,
|
||||
0.82783, 0.80881, 0.79006, 0.76896, 0.74609, 0.72146, 0.69675, 0.67382, 0.65077, 0.62592,
|
||||
0.59979, 0.57407, 0.54886, 0.52448, 0.50111, 0.48010, 0.46023, 0.43980, 0.41899, 0.39832,
|
||||
0.37743, 0.35755, 0.33905, 0.32097, 0.30356, 0.28676, 0.27100, 0.25658, 0.24282, 0.22969,
|
||||
0.21773, 0.20690, 0.19698, 0.18726, 0.17787, 0.16911, 0.16047, 0.15173, 0.14340, 0.13493,
|
||||
0.12691, 0.11987, 0.11300, 0.10640, 0.10032, 0.09489, 0.09021, 0.08574, 0.08169, 0.07789,
|
||||
0.07425, 0.07080, 0.06768, 0.06488, 0.06190, 0.05874, 0.05557, 0.05291, 0.05039, 0.04796,
|
||||
0.04557, 0.04274, 0.04023, 0.03822, 0.03661, 0.03498, 0.03317, 0.03140, 0.03002, 0.02875,
|
||||
0.02716, 0.02538, 0.02316, 0.02109, 0.01956, 0.01807, 0.01656, 0.01499, 0.01359, 0.01239,
|
||||
0.01115, 0.00994, 0.00891, 0.00817, 0.00760, 0.00726, 0.00683, 0.00647, 0.00629, 0.00607,
|
||||
0.00587, 0.00550, 0.00520, 0.00494, 0.00465, 0.00423, 0.00373, 0.00327, 0.00293, 0.00260,
|
||||
0.00227, 0.00209, 0.00193, 0.00175, 0.00155, 0.00134, 0.00113, 0.00092, 0.00075, 0.00069,
|
||||
0.00062, 0.00058, 0.00058, 0.00058, 0.00058, 0.00054, 0.00045, 0.00038, 0.00035, 0.00031,
|
||||
0.00027, 0.00024, 0.00022, 0.00019, 0.00016, 0.00016, 0.00011, 0.00007, 0.00007, 0.00007,
|
||||
0.00007, 0.00006, 0.00004, 0.00004, 0.00004, 0.00004, 0.00004, 0.00004, 0.00004, 0.00004,
|
||||
0.00003, 0.00002, 0.00002, 0.00002, 0.00002, 0.00002, 0.00002, 0.00002, 0.00002, 0.00002,
|
||||
0.00001,
|
||||
];
|
||||
|
||||
@@ -12,15 +12,20 @@
|
||||
//! what holds: the width changes by less than `DEPTH_DRIFT`.
|
||||
//!
|
||||
//! Observed on the frozen tables (the slacks below are several times looser): per-class
|
||||
//! violations of the position order 0.0 (exact subsets) and width violations 0.0.
|
||||
//! violations of the position order 0.0 (exact subsets) and width violations 0.0; since the
|
||||
//! rake/ante regeneration one indifferent mix (98s BTN 40bb) is the single tolerated exception.
|
||||
mod cfr_support;
|
||||
|
||||
use cfr_support::{id, width, width_column};
|
||||
use rechner::cfr::hand_class::CLASS_COUNT;
|
||||
use rechner::cfr::seat::Seat;
|
||||
use rechner::cfr::environment::Environment;
|
||||
use rechner::cfr::frozen_multi::decode;
|
||||
use rechner::cfr::spot_solver::solve_push_fold_spot;
|
||||
use rechner::preflop::generated_charts::{
|
||||
AOF_PUSH_FOLD, OPEN, OPEN_DEPTHS, PUSH_FOLD, PUSH_FOLD_DEPTHS,
|
||||
};
|
||||
use rechner::preflop::generated_charts_multi::BASELINE;
|
||||
|
||||
/// Per-class slack when comparing mixed frequencies across spots (mixing at range borders).
|
||||
const SLACK: f64 = 0.05;
|
||||
@@ -155,12 +160,20 @@ fn open_ranges_widen_with_position_as_subsets() {
|
||||
"{} -> {} at {depth}bb: {} vs {}",
|
||||
pair[0].label(), pair[1].label(), width(&early.open), width(&late.open)
|
||||
);
|
||||
// A class the later seat MIXES (strictly between 5 % and 95 %) is indifferent there:
|
||||
// raising it always has the same EV, so the earlier seat playing it more is no
|
||||
// violation of the order. Since the rake/ante regeneration (3d65e85) exactly one such
|
||||
// case exists (98s: CO 40bb 100 %, BTN 40bb 30 %); at most one per pair is tolerated.
|
||||
let mut mixed = 0;
|
||||
for c in 0..CLASS_COUNT {
|
||||
assert!(
|
||||
fraction(&early.open, c) <= fraction(&late.open, c) + SLACK,
|
||||
"class {c} {} -> {} at {depth}bb", pair[0].label(), pair[1].label()
|
||||
);
|
||||
let (e, l) = (fraction(&early.open, c), fraction(&late.open, c));
|
||||
if e <= l + SLACK {
|
||||
continue;
|
||||
}
|
||||
assert!((0.05..=0.95).contains(&l), "class {c} {} -> {} at {depth}bb", pair[0].label(), pair[1].label());
|
||||
mixed += 1;
|
||||
}
|
||||
assert!(mixed <= 1, "{} -> {} at {depth}bb: {mixed} mixed exceptions", pair[0].label(), pair[1].label());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -204,7 +217,13 @@ fn heads_up_small_blind_matches_published_push_fold_nash() {
|
||||
// ICMIZER heads-up charts all agree within a few points). Tolerance reflects that spread
|
||||
// plus the Monte-Carlo noise of the equity table. Values quoted from memory of those
|
||||
// published charts, not re-derived here.
|
||||
let spot = push_spot(Seat::SmallBlind, 10);
|
||||
//
|
||||
// Those charts are the zero-sum game WITHOUT rake and antes. The shipped tables carry the
|
||||
// measured rake and six antes (0.96 bb dead money, 3d65e85), which widens the push to ~73 %:
|
||||
// so the reference is checked on the same spot solved without both (`frozen_free_table`),
|
||||
// and the shipped table must jam at least as wide as that (dead money only adds to stealing).
|
||||
let free = Environment::frozen_free_table();
|
||||
let spot = solve_push_fold_spot(&free, Seat::SmallBlind, 10).expect("spot");
|
||||
let push = width(&spot.push);
|
||||
let call = width(&spot.call);
|
||||
assert!((0.52..=0.64).contains(&push), "SB 10bb push {push}");
|
||||
@@ -214,8 +233,10 @@ fn heads_up_small_blind_matches_published_push_fold_nash() {
|
||||
assert_eq!(spot.push[id("32o")], 0);
|
||||
// At 5 bb the small blind jams clearly wider (about 70 %): the big blind must call ~60 % to
|
||||
// keep him honest, and 72o still loses to folding (EV -0.7 vs -0.5), so 100 % is not Nash.
|
||||
let five = width(&push_spot(Seat::SmallBlind, 5).push);
|
||||
let five = width(&solve_push_fold_spot(&free, Seat::SmallBlind, 5).expect("spot").push);
|
||||
assert!(five > push + 0.08 && five < 0.9, "SB 5bb push {five}");
|
||||
let shipped = width(&push_spot(Seat::SmallBlind, 10).push);
|
||||
assert!(shipped >= push - WIDTH_SLACK, "shipped SB 10bb push {shipped} vs ante-free {push}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -261,18 +282,22 @@ fn tight_seats_defend_less_than_they_open_wide_and_big_blind_defends_widest_agai
|
||||
}
|
||||
}
|
||||
|
||||
/// Open width of EP and MP with only the big blind as defender (the tables before both blinds
|
||||
/// were players), 20 / 40 / 100 bb.
|
||||
const ONE_DEFENDER_OPEN: [(Seat, [f64; 3]); 2] =
|
||||
[(Seat::Early, [0.288, 0.298, 0.291]), (Seat::Middle, [0.332, 0.357, 0.340])];
|
||||
/// How much narrower EP and MP must open now that both blinds defend.
|
||||
const SHRINK: f64 = 0.02;
|
||||
|
||||
/// EP and MP open narrower against both blinds than against the big blind alone. The
|
||||
/// one-defender reference is the `BASELINE` of `generated_charts_multi`: the same game solved in
|
||||
/// the same environment (rake, antes) as the shipped tables. The test used to pin hand-copied
|
||||
/// widths from the tables before the rake/ante regeneration (3d65e85); those were a different
|
||||
/// environment, so the comparison measured the environment change, not the second defender.
|
||||
#[test]
|
||||
fn early_and_middle_open_narrower_with_two_defenders() {
|
||||
for (seat, before) in ONE_DEFENDER_OPEN {
|
||||
for (depth, old) in OPEN_DEPTHS.iter().zip(before) {
|
||||
let now = width(&open_spot(seat, *depth).open);
|
||||
for seat in [Seat::Early, Seat::Middle] {
|
||||
for depth in OPEN_DEPTHS {
|
||||
let base = BASELINE.iter().find(|b| b.seat == seat && b.depth_bb == depth).expect("baseline");
|
||||
let one: [u16; CLASS_COUNT] = decode(base.open).expect("decode").try_into().expect("class count");
|
||||
let old = width(&one);
|
||||
let now = width(&open_spot(seat, depth).open);
|
||||
assert!(now <= old - SHRINK, "{} {depth}bb: {now} vs one-defender {old}", seat.label());
|
||||
}
|
||||
}
|
||||
@@ -324,3 +349,4 @@ fn short_deck_tables_hold_only_deck_classes_and_look_like_poker() {
|
||||
let push = |depth: u8| width(&short::PUSH_FOLD.iter().find(|s| s.seat == Seat::Button && s.depth_bb == depth).expect("spot").push);
|
||||
assert!(push(5) >= push(10) && push(10) >= push(25));
|
||||
}
|
||||
|
||||
|
||||
+40
-12
@@ -89,19 +89,46 @@ fn never_bluff_someone_who_never_folds() {
|
||||
|
||||
// ---------- Stealing ----------
|
||||
|
||||
/// One hand of each of the 169 classes.
|
||||
fn every_class() -> Vec<String> {
|
||||
let ranks = ['A', 'K', 'Q', 'J', 'T', '9', '8', '7', '6', '5', '4', '3', '2'];
|
||||
let mut hands = Vec::new();
|
||||
for (i, hi) in ranks.iter().enumerate() {
|
||||
hands.push(format!("{hi}d {hi}c"));
|
||||
for lo in &ranks[i + 1..] {
|
||||
hands.push(format!("{hi}d {lo}d"));
|
||||
hands.push(format!("{hi}d {lo}c"));
|
||||
}
|
||||
}
|
||||
hands
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn steal_wider_against_nits_in_the_blinds() {
|
||||
// The button opens the CFR range (about the top 36 % against both blinds). Against two
|
||||
// nits the steal widens past it, against two calling stations it shrinks.
|
||||
let hero = "Kd 4c"; // just outside the range: folded in equilibrium
|
||||
assert!(["FOLD", "ABSTAIN"].contains(&action(&respond(&steal(hero, ""))).as_str()));
|
||||
let nit = respond(&steal(hero, NIT));
|
||||
assert_eq!(action(&nit), "RAISE", "{nit}");
|
||||
assert!(reason(&nit).contains("exploit"), "{nit}");
|
||||
assert_eq!(action(&respond(&steal(hero, STATION))), "FOLD");
|
||||
// K7o is an equilibrium open, no longer stolen against stations.
|
||||
assert_eq!(action(&respond(&steal("Kd 7c", ""))), "RAISE");
|
||||
assert_eq!(action(&respond(&steal("Kd 7c", STATION))), "FOLD");
|
||||
fn steal_narrower_against_stations_and_blind_against_nits() {
|
||||
// The button opens the CFR range against both blinds; against two calling stations the steal
|
||||
// shrinks. The test used to claim the steal also WIDENS against two nits (Kd4c folded blind,
|
||||
// stolen from nits). That read no longer reaches the decision: the read gate drops every nit
|
||||
// read (`engine::read_gate::earned_trust(Nit) = 0.0`, measured heads-up −50 bb/100 against
|
||||
// blind play), so against nits the button plays the equilibrium hand for hand. The pinned
|
||||
// border hands (Kd4c, Kd7c) also moved inside the range with the rake/ante re-solve (3d65e85);
|
||||
// the hands are now searched over all 169 classes.
|
||||
let folded = |a: &str| ["FOLD", "ABSTAIN"].contains(&a);
|
||||
let mut shrunk = 0;
|
||||
for hero in every_class() {
|
||||
let base = action(&respond(&steal(&hero, "")));
|
||||
let nit = action(&respond(&steal(&hero, NIT)));
|
||||
let station = respond(&steal(&hero, STATION));
|
||||
assert_eq!(nit, base, "{hero}: the nit read is gated, the steal stays blind");
|
||||
if base == "RAISE" && folded(&action(&station)) {
|
||||
assert!(reason(&station).contains("exploit"), "{hero}: {station}");
|
||||
shrunk += 1;
|
||||
}
|
||||
// Never the other way: a hand folded blind is not stolen from stations.
|
||||
if folded(&base) {
|
||||
assert!(folded(&action(&station)), "{hero}: folded blind, stolen from stations");
|
||||
}
|
||||
}
|
||||
assert!(shrunk > 0, "no equilibrium open is dropped against stations");
|
||||
}
|
||||
|
||||
// ---------- Bluff catching ----------
|
||||
@@ -144,3 +171,4 @@ fn draws_raise_as_semibluffs_not_as_pure_bluffs() {
|
||||
assert_eq!(action(&out), "RAISE", "{out}");
|
||||
assert!(reason(&out).contains("semibluff"), "{out}");
|
||||
}
|
||||
|
||||
|
||||
@@ -70,15 +70,49 @@ fn button_first_in(hole: &str, with_small_blind: bool) -> Spot {
|
||||
spot(hole, BUTTON, &present, h, 1.0, 40.0)
|
||||
}
|
||||
|
||||
/// One hand of each of the 169 classes: pairs, suited and offsuit.
|
||||
fn every_class() -> Vec<String> {
|
||||
let ranks = ['A', 'K', 'Q', 'J', 'T', '9', '8', '7', '6', '5', '4', '3', '2'];
|
||||
let mut hands = Vec::new();
|
||||
for (i, hi) in ranks.iter().enumerate() {
|
||||
hands.push(format!("{hi}h {hi}d"));
|
||||
for lo in &ranks[i + 1..] {
|
||||
hands.push(format!("{hi}h {lo}h"));
|
||||
hands.push(format!("{hi}h {lo}d"));
|
||||
}
|
||||
}
|
||||
hands
|
||||
}
|
||||
|
||||
// The three tests below used to pin one hand each (Q8o, KTo, 77) at the border of the ranges.
|
||||
// The tables were re-solved with the measured rake and antes (3d65e85) and every range moved
|
||||
// wider, so those hands now raise on both sides. The claim of each test is structural (a second
|
||||
// defender, a full table, a non-blind defender change the answer and read their table); the
|
||||
// border hand is now searched over all 169 classes instead of hard-coded.
|
||||
|
||||
#[test]
|
||||
fn a_second_defender_changes_the_button_open() {
|
||||
// Q8o opens against the big blind alone and folds once the small blind sits behind too.
|
||||
let one = plan(&button_first_in("Qh 8d", false));
|
||||
let two = plan(&button_first_in("Qh 8d", true));
|
||||
assert_eq!(one.action, ChartAction::Raise, "{}", one.reason);
|
||||
assert_eq!(two.action, ChartAction::Fold, "{}", two.reason);
|
||||
// Some hand opens against the big blind alone and folds once the small blind sits behind too.
|
||||
let moved: Vec<String> = every_class()
|
||||
.into_iter()
|
||||
.filter(|hole| {
|
||||
plan(&button_first_in(hole, false)).action == ChartAction::Raise
|
||||
&& plan(&button_first_in(hole, true)).action == ChartAction::Fold
|
||||
})
|
||||
.collect();
|
||||
assert!(!moved.is_empty(), "no hand opens vs 1 defender and folds vs 2");
|
||||
let (one, two) = (plan(&button_first_in(&moved[0], false)), plan(&button_first_in(&moved[0], true)));
|
||||
assert!(one.reason.contains("CFR open 40bb vs 1 defender"), "{}", one.reason);
|
||||
assert!(two.reason.contains("CFR open 40bb vs 2 defenders"), "{}", two.reason);
|
||||
// No hand goes the other way by more than the mixing at the border.
|
||||
let backwards = every_class()
|
||||
.into_iter()
|
||||
.filter(|hole| {
|
||||
plan(&button_first_in(hole, false)).action == ChartAction::Fold
|
||||
&& plan(&button_first_in(hole, true)).action == ChartAction::Raise
|
||||
})
|
||||
.count();
|
||||
assert!(backwards <= moved.len() / 4, "{backwards} hands open only against two defenders, {} the other way", moved.len());
|
||||
// Hands at both ends do not move: aces open, seven-deuce folds.
|
||||
for with_small_blind in [false, true] {
|
||||
assert_eq!(plan(&button_first_in("Ah Ad", with_small_blind)).action, ChartAction::Raise);
|
||||
@@ -90,24 +124,37 @@ fn a_second_defender_changes_the_button_open() {
|
||||
fn a_full_table_opens_tighter_from_early_position() {
|
||||
// EP with five players behind reads the four-defender table (MP is the wake field); with
|
||||
// only the blinds behind, the two-defender one.
|
||||
let full = spot("Kh Td", EARLY, &[0, 1, 2, 3, 4, 5], history(&[0, 1, 2, 3, 4, 5], &[]), 1.0, 40.0);
|
||||
let blinds = spot("Kh Td", EARLY, &[0, 4, 5], history(&[0, 4, 5], &[]), 1.0, 40.0);
|
||||
let (full, blinds) = (plan(&full), plan(&blinds));
|
||||
assert_eq!(blinds.action, ChartAction::Raise, "{}", blinds.reason);
|
||||
assert_eq!(full.action, ChartAction::Fold, "{}", full.reason);
|
||||
assert!(full.reason.contains("vs 4 defenders"), "{}", full.reason);
|
||||
assert!(blinds.reason.contains("vs 2 defenders"), "{}", blinds.reason);
|
||||
let full = |hole: &str| plan(&spot(hole, EARLY, &[0, 1, 2, 3, 4, 5], history(&[0, 1, 2, 3, 4, 5], &[]), 1.0, 40.0));
|
||||
let blinds = |hole: &str| plan(&spot(hole, EARLY, &[0, 4, 5], history(&[0, 4, 5], &[]), 1.0, 40.0));
|
||||
let (mut tighter, mut wider) = (0, 0);
|
||||
for hole in every_class() {
|
||||
let (f, b) = (full(&hole).action, blinds(&hole).action);
|
||||
tighter += (b == ChartAction::Raise && f == ChartAction::Fold) as usize;
|
||||
wider += (b == ChartAction::Fold && f == ChartAction::Raise) as usize;
|
||||
}
|
||||
assert!(tighter > 0 && tighter > 4 * wider, "full table folds {tighter} blind-only opens, opens {wider} blind-only folds");
|
||||
let (f, b) = (full("Kh Td"), blinds("Kh Td"));
|
||||
assert!(f.reason.contains("vs 4 defenders"), "{}", f.reason);
|
||||
assert!(b.reason.contains("vs 2 defenders"), "{}", b.reason);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_defender_that_is_not_a_blind_now_reads_the_table() {
|
||||
// EP opens, MP and CO fold: the button defends with the blinds still behind it.
|
||||
let mut h = history(&[0, 1, 2, 3, 4, 5], &[]);
|
||||
h.extend([record(0, SeenAction::Raise, Some(2.5)), record(1, SeenAction::Fold, None), record(2, SeenAction::Fold, None)]);
|
||||
let s = spot("7h 7d", BUTTON, &[0, 1, 2, 3, 4, 5], h, 2.5, 40.0);
|
||||
let p = plan(&s);
|
||||
let button = |hole: &str| {
|
||||
let mut h = history(&[0, 1, 2, 3, 4, 5], &[]);
|
||||
h.extend([record(0, SeenAction::Raise, Some(2.5)), record(1, SeenAction::Fold, None), record(2, SeenAction::Fold, None)]);
|
||||
plan(&spot(hole, BUTTON, &[0, 1, 2, 3, 4, 5], h, 2.5, 40.0))
|
||||
};
|
||||
let p = button("7h 7d");
|
||||
assert!(p.reason.contains("CFR BTN vs open 40bb vs 4 defenders"), "{}", p.reason);
|
||||
assert_eq!(p.action, ChartAction::Call, "{}", p.reason);
|
||||
assert_ne!(p.action, ChartAction::Fold, "{}", p.reason);
|
||||
// The table has all three answers: some hands call, some 3-bet, junk folds.
|
||||
let actions: Vec<ChartAction> = every_class().iter().map(|h| button(h).action).collect();
|
||||
for want in [ChartAction::Call, ChartAction::Raise, ChartAction::Fold] {
|
||||
assert!(actions.contains(&want), "BTN vs EP open never {want:?}");
|
||||
}
|
||||
assert_eq!(button("7h 2d").action, ChartAction::Fold);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user