From 4fa087576582c5bfba1078154c78b6aeb0fac409 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sat, 31 Oct 2026 10:36:11 +0100 Subject: [PATCH] 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 --- MODULES.md | 19 +++ benchmarks/baseline.txt | 51 ++++++ src/bin/benchmark.rs | 87 +++++++++++ src/exploit/mark.rs | 33 ++++ src/exploit/mod.rs | 1 + src/exploit/thresholds.rs | 2 +- src/sim/benchmark.rs | 180 ++++++++++++++++++++++ src/sim/mod.rs | 3 + src/sim/opponent.rs | 8 +- src/sim/paired.rs | 57 +++++++ src/sim/reader.rs | 121 +++++++++++++++ src/sim/session.rs | 7 +- src/sim/table.rs | 18 ++- src/wire/decode_villain.rs | 14 +- tests/engine_multiway.rs | 6 +- tests/engine_texture_stance.rs | 16 +- tests/pipeline_mark.rs | 60 ++++++++ tests/sim_benchmark.rs | 273 +++++++++++++++++++++++++++++++++ 18 files changed, 939 insertions(+), 17 deletions(-) create mode 100644 benchmarks/baseline.txt create mode 100644 src/bin/benchmark.rs create mode 100644 src/exploit/mark.rs create mode 100644 src/sim/benchmark.rs create mode 100644 src/sim/paired.rs create mode 100644 src/sim/reader.rs create mode 100644 tests/pipeline_mark.rs create mode 100644 tests/sim_benchmark.rs diff --git a/MODULES.md b/MODULES.md index eb11dd51..76ff8c38 100644 --- a/MODULES.md +++ b/MODULES.md @@ -58,6 +58,7 @@ Zufall kommt nur aus `rng::Rng`, das als Wert mitgegeben wird (Seed: Erweiterung | `buttonSeat` | Sitz des Buttons. Fehlt er, wird er aus `POST_SB`/`POST_BB` in `history` abgeleitet. Sitze dürfen ab 0 oder ab 1 zählen. Ist die Zählung mehrdeutig und ergibt verschiedene Buttons, bleibt die Position unbekannt. | | `seed` | Seed der Simulation | | `villains[].profile` | `{vpip, pfr, foldToBet, aggression}`, alle 0..1. Neu ist `aggression`: der Anteil der Postflop-Aktionen, die Bet oder Raise sind. Er steuert den Bluff-Anteil der Gegner-Range. | +| `villains[].marke` | Marke des Clients am Spieler (`Anfaenger`, `FISH`). Füllt fehlende Profilfelder wie bei einer passiven Calling Station (`exploit::mark`, Annahme, nicht gemessen; im Bestand steht bisher keine Marke). Gemessene Werte gewinnen, unbekannte Marken ändern nichts, kein Text → `ABSTAIN`. | | `history` | Liste `{street, seat, action, amount?}`. `action` ∈ `POST_SB`, `POST_BB`, `POST_ANTE`, `FOLD`, `CHECK`, `CALL`, `BET`, `RAISE`, `ALL_IN`. `amount` = Gesamteinsatz des Sitzes auf dieser Straße nach der Aktion. Fehler nennen den Pfad, z. B. `history[2].action`. | | `boardDouble` | Zweites Board (Form wie `board`). Je Board entschieden, die höhere Equity gewinnt, bei Gleichstand Board 1. Näherung siehe „Annahmen und Grenzen“. Ungleiche Länge, doppelte Karte, nicht bewertbares Board → `ABSTAIN`. | | `ritOffered` | Run it twice wird angeboten. Antwort zusätzlich `rit` ∈ `ACCEPT`, `DECLINE`, `ABSTAIN` und `ritReason`. Annehmen, wenn die Equity über dem Bruchpunkt liegt: der Gewinn halbiert sich, aber auch das Risiko. Bruchpunkt `toCall / (pot + toCall)`; ohne offenen Call der faire Anteil `1 / Spieler im Pot`. Ohne Equity → `ABSTAIN`. Die Aktion bleibt dieselbe. | @@ -293,6 +294,24 @@ Gegen die Calling Station ist der Vorsprung am kleinsten und am unsichersten: Ge Alle Rückgänge gegen Zufall liegen im Intervall. +## Benchmark: besser oder schlechter als vorher? + +```bash +cargo run --release --bin benchmark # gegen benchmarks/baseline.txt, Exit-Code 1 bei Rückschritt +cargo run --release --bin benchmark -- --save # die aktuelle Engine wird die Basislinie +``` + +Dauer rund 3,5 Minuten (`sim::benchmark`, `sim::paired`, `sim::reader`). Zehn feste Szenarien, 100 bb, ohne Rake und Antes: heads-up (1 000 Austeilungen) und 6-max (150) gegen Reg, Nit, Maniac, Fisch und Calling Station. Die vier ersten sehen ihre Karten an und spielen feste Regeln auf Equity gegen eine Zufallshand. Folder und Zufall fehlen: der eine ist bei +75 gesättigt, der andere überdeckt mit seiner Streuung alles. + +**Urteil:** Verglichen wird je Austeilung, die Differenz neu minus Basislinie. Es heißt `BESSER` oder `SCHLECHTER`, wenn das 95-%-Intervall der mittleren Differenz die 0 ausschließt, `gleich`, wenn sich kein Ergebnis bewegt hat, sonst `nicht unterscheidbar`. `GESAMT` ist der Mittelwert der Szenarien, jedes gleich gewichtet. Andere Szenarien, Austeilungen oder Seeds verweigert der Vergleich. + +**Grenzen:** +- Die Zahl misst nur gegen diese Bots, nicht gegen GTO und nicht gegen echte Tische. Die absoluten bb/100 sind nicht aussagekräftig, nur die Änderung. +- Bei zehn Szenarien kann eine Änderung auch zufällig in einem davon als `SCHLECHTER` erscheinen. `GESAMT` und die Zahl der geänderten Austeilungen mitlesen. +- Bleibt eine Änderung an der Engine gewollt, die Basislinie mit `--save` neu messen, sonst vergleicht jeder spätere Lauf mit dem alten Stand. + +**Wert-Schwelle 0,58 statt 0,62** (`Thresholds::BASE.value_raise`, 2026-10-31): gesamt +11,63 ± 7,17 bb/100, auf frischem Seed +16,75 ± 15,64. Belegt ist der Gewinn nur gegen Calling Station und Maniac, gegen Reg und Nit nicht. 0,66 war schlechter (−9,79 ± 6,46), 0,54 von 0,58 nicht zu unterscheiden, bei fast doppelt so vielen geänderten Austeilungen. + ## Große Runde 2026-10-29: Stärke, Einsatzplan, ICM-lite **Kern** (`engine/size_policy.rs`, `icm/`, Änderungen in `decide`, `options`, `postflop`, `bluff`, `cfr_advice`, `sizing/preflop`): diff --git a/benchmarks/baseline.txt b/benchmarks/baseline.txt new file mode 100644 index 00000000..12543e64 --- /dev/null +++ b/benchmarks/baseline.txt @@ -0,0 +1,51 @@ +label 8c2039c+lokal +scenario heads-up reg +deals 1000 +seed 1592590337 +counts 3959 64 0 +samples 0.75 -0.2751893939393939 1.0525000000000047 -0.32166666666666655 -1.806616161616161 0.10833333333333339 -1.6742929292929296 -5.876515151515152 0.1418644781144801 0.18465909090909083 0.03136363636363643 0.06058080808080807 2.7617424242424287 0.19732323232323234 -0.34261363636364095 0.75 -0.10287878787878796 0.41833333333333345 0.75 0.75 0.2946969696969697 0.39666666666666667 0.75 27.605833333333337 0.2675 0 0.6315867003367028 0.36 0.75 -0.924225589225582 0 0.75 0.75 0.019486531986534272 0.46053030303030296 0 41.70016835016835 0.2774663299663349 1.6522727272727278 -0.01041666666666674 0.841540404040404 0.75 -0.052083333333332926 0.75 0.8746212121212121 0.75 -0.026944444444442217 0.75 0.2523484848484849 0.02151515151515121 0.75 0.75 0.75 0.1469949494949495 0.3325 47.60530303030302 0.4477272727272743 -0.6571969696969696 0.75 0.29027777777777775 -0.6729166666666666 -0.21939393939393936 0.75 0.75 0.75 -0.27500000000000013 -1.758333333333331 0.75 0.75 -0.28474747474747253 -0.2907954545454544 1.0116666666666667 -0.4415151515151514 0.39250000000000007 -0.033333333333333104 0.304520202020202 -0.012499999999999956 -0.1383207070707071 0.22999999999999998 0.75 0.27005050505050504 0.0823358585858609 0.09102693602693812 -12.055454545454545 0.75 0.4031818181818181 -14.247748316498315 0.2877272727272727 0.75 0.75 -0.004166666666666652 0.5832828282828284 0 -4.326262626262623 0.75 0.75 0.3358333333333333 1.0121843434343436 0 1.6024621212121213 1.2627272727272727 0.75 0.5608333333333333 -0.305867003367001 0.75 0.3358333333333333 0.75 -0.1421212121212121 0.75 0.03125 -0.6087752525252526 -18.912020202020198 0.5533333333333333 0.46 -2.5397222222222173 0.4441287878787876 -0.35481060606060355 -1.5498316498316522 0.36833333333333335 -0.2821969696969697 -0.15416666666666667 -0.6512626262626263 0.3883333333333333 0.245 0.75 22.856133557800224 0.4 0.75 13.635984848484851 -0.13060606060606028 0.573939393939394 0.07777777777778017 1.4837121212121211 0.19128787878787867 0.9626893939393986 0.4442424242424243 -4.198253367003361 0.75 -0.29640151515151536 0.029861111111113225 1.9083333333333332 -0.2259469696969696 -1.2458333333333336 0.75 -18.993336139169465 1.3289772727272768 -36.019205948372615 -0.18222222222222217 1.235631313131318 -1.7687499999999976 0.75 0 -0.24583333333333335 0.24416666666666664 0 0.75 0.75 0.3466666666666667 -0.6416666666666667 -0.1589015151515154 0.7133333333333334 1.8945707070707116 0.3516666666666667 -44.54375 0.75 -13.526641414141409 0.28125 -0.027083333333333126 0.3225 0.6733333333333333 0.06108585858586091 0.31666666666666665 -0.6067550505050505 0.75 1.34231060606061 0.14381313131313134 -1.15117985409652 -0.15333333333333332 0.31583333333333335 0.75 45.270420875420875 -0.022916666666666696 0.31 0 -0.10375000000000012 -0.14069444444444446 0.07916666666666661 0.008333333333333304 0.75 0.75 3.0584680134680147 0.33166666666666667 0.28368686868686865 1.6180976430976481 0.75 -0.15833333333333333 0.20613636363636367 0.9060563973064022 0.31458333333333344 0 0 -0.02083333333333326 -0.30827020202020206 0.001742424242424212 0.1640151515151515 -1.2337205387205428 -0.35 0.6563973063973112 -0.48876262626262634 0 0.6327020202020246 0.75 0.18547979797979797 -0.1729166666666666 0.13962121212121215 0 0.385 0.75 0.2546717171717172 5.954013748597082 0.75 0.47969696969696973 0.75 0 0.75 -2.0692550505050504 0.75 -0.19999999999999996 0 -20.536969696969695 1.8257996632996607 -0.2113636363636363 -23.76523569023569 0.3404166666666668 0.8263636363636364 0.04791666666666661 -0.125 0.8169696969696969 0.75 -5.8686237373737375 0.75 0.07499999999999996 0.75 0.75 0.75 -0.9911826599326576 -0.09166666666666656 -0.010416666666667074 0.75 0.75 0.75 0.08416666666666683 -2.6479166666666667 0.10416666666666652 -0.13958333333333328 0.75 1.6496212121212097 0.75 0.7427651515151568 -0.22291666666666665 0.527861952861948 -0.09375 0.5616666666666666 -0.13958333333333317 0.16449494949494947 0.871338383838383 0.365 0.75 0.17527777777778009 0 -0.10833333333333339 0.75 3.3523737373737412 0.6539772727272681 16.102083333333333 0.576262626262626 1.0401262626262604 0.24128787878787872 0.75 -0.06041666666666634 -6.074256453423114 0.75 0.75 0.2809469696969701 -0.02083333333333326 -3.3808880471380434 0.43333333333333335 0.28335858585858587 0.5566666666666666 0.75 0 0.13916666666666666 -0.11124999999999996 0.445 -0.7644318181818182 0.1898989898989899 0.75 0.75 0.36 0.3766666666666667 -24.364166666666666 -0.21079545454545456 -5.972744107744102 0.55 0 0.4339898989898989 32.310799663299655 0.75 0.75 0.35 0.75 0.75 0.42666666666666664 0.5623737373737372 0.7402272727272727 0.18121212121212116 0.2849999999999999 0.75 0 0.75 0.75 -1.061249999999997 -0.07367424242424236 -3.387212401795737 -1.7124999999999977 -1.792499999999999 0.4890656565656566 0.3233333333333333 -0.18340909090909097 -0.13242424242424222 0.75 0.13749999999999996 0.75 1.8736111111111162 0.23291666666666677 0.75 0.39848484848484855 0.3068939393939394 0.27166666666666667 0 0.13162878787878562 0.35583333333333333 -0.2958333333333334 0.5966666666666667 0.75 0.75 0.08818181818181814 0.75 -0.605239898989899 0.36666666666666664 0.75 -0.2354166666666666 0.5775 0.4816666666666667 3.2852272727272678 -1 -0.04166666666666674 2.3957070707070702 -0.01666666666666672 0.75 0 0.056195286195288574 1.942803030303028 0.75 0.3575 0.532760942760941 0.23083333333333333 -0.6411742424242426 0.3591666666666667 1.126746632996635 0 -0.09166666666666667 0.4121969696969696 -0.2994949494949496 0.605 0.75 -0.6766414141414142 0.5381818181818181 0 -0.08483726150392101 0.41583333333333333 0.75 -0.8323863636363638 -2.436851851851854 0.75 -0.15333333333333332 0.75 0.75 0.75 0.75 0.38590909090909087 0.07928030303030342 0.75 -0.539583333333336 0.16295454545454546 0.75 -0.6115530303030303 0.75 -48.66813131313132 0.75 0.12250000000000516 0.7662121212121212 -0.4049873737373737 0.10249999999999998 0 -0.13939393939393951 -12.423042929292926 13.891792929292933 -0.153796296296294 0.75 -0.3964015151515152 0.75 0.2526515151515152 -0.125 0.75 0 -0.24078282828282827 0.3483333333333334 0.025138888888891153 0.75 0.45833333333333326 -0.19999999999999996 -1.7062499999999976 0.3170454545454545 0.628611111111111 -0.15404040404040842 0.75 -4.277377946127941 -1.7708333333333308 0.75 0.02083333333333326 0.375 0.014583333333333393 -0.05590909090909091 -0.7110058922558946 1.9333333333333333 0.4348484848484849 0.38121212121212134 0.02499999999999991 0.75 9.088657407407418 0.3416666666666667 0.75 0.7313103254769908 -1.471843434343434 2.0556060606060607 0.07878787878787885 0.32325757575757574 0.36409090909090913 -0.14166666666666683 0 0.02295454545454545 0.75 -0.06458333333333344 -0.2847853535353564 -0.22708333333333353 -1.4840909090909111 0.75 0.3208333333333333 -0.2991161616161617 -0.3270833333333334 0.75 0.3661363636363636 0.75 0.8021969696969697 -0.14166666666666672 0.38916666666666666 -0.10416666666666674 0.16333333333333327 0.75 32.07530303030303 0.08000000000000052 -2.8791666666666664 -0.4768939393939393 0.75 0.75 0 0.75 0.75 1.4183080808080857 0.7734343434343435 0.2564141414141412 -0.6633333333333333 0 1.0583333333333333 -4.852205387205383 -0.008333333333333193 0.09359848484848465 -0.5860479797979798 -0.16660353535353534 -16.25667227833894 0.26 0.6098484848484844 0.2783333333333333 20.36564253647587 -0.0064898989898989345 0.3525 -0.2562500000000002 0.75 46.52045454545455 -0.16666666666666674 0.75 0.75 0 0 0.6112121212121212 -0.36736111111111114 -0.07291666666666663 -0.029166666666666785 0.75 0.2733333333333332 0.75 0.75 -0.22696969696969693 -0.21628787878787892 0.5123484848484849 0.10700757575757569 0.75 0.75 0.75 2.8217382154882156 -0.17499999999999982 0.6175 -0.29083333333333095 0.75 -0.21458333333333335 0.3625 -0.9392045454545452 0.31166666666666665 -0.4227272727272715 0.6554924242424243 -0.10833333333333317 0.75 -0.20178030303030303 0 0.029444444444446827 -0.40700757575757585 0 -0.17708333333333348 -22.30493827160494 -0.3341666666666643 -0.12916666666666665 0.75 0.75 0.75 0.75 0.75 -0.1969907407407412 0.75 0.4346801346801372 0.07499999999999307 0.75 0.8985269360269317 -5.414200336700333 0.3941287878787836 0.4075 0.3626010101010101 0.75 0.39502525252525256 0 0.75 0.08124999999999982 0.75 -0.1479166666666667 1.1672348484848485 0.75 0 0.75 -0.056628787878787834 0.3925 0.75 0.7341287878787879 0.75 0.3926010101010101 0.75 0.10694444444444917 1.3247474747474794 0.29833333333333334 0.75 0 1.4744318181818183 0.28878787878787876 0.38249999999999995 -0.14374999999999982 0.75 0.75 0.75 0.006590909090909092 0.75 0.75 0.75 0.29583333333333334 0.31260101010101005 -0.17152777777777772 0.33 1.2317676767676815 -0.02083333333333315 -23.774005331088667 0.75 -46.605555555555554 -1.7749999999999977 -0.14614898989899006 -0.19564393939393931 0.75 0.75 0.75 1.6782828282828268 0.3914646464646464 0.75 0.75 0.5857575757575757 43.55320707070707 0.39583333333333337 -0.26477272727272727 0.449431818181818 -0.012499999999999956 -1.695833333333331 -0.03856060606060363 2.40625 0.75 -0.5916666666666668 0.4083333333333333 0.13527777777777472 -0.010416666666666519 -1 0.5167424242424243 0.44166666666666665 0.5716666666666667 0.7360479797979815 0.4375 0 0.75 -0.26989898989898764 14.792150673400661 -0.11458333333333337 -0.2585227272727273 0 0 0.9885521885521809 46.63623737373737 0 0.75 -0.2308080808080808 -0.21750000000000003 -10.205812289562274 0.3075 1.1985606060606133 -22.729775533108864 0 2.254166666666667 -0.16125000000000012 0.75 -0.07790404040404053 0 0.18507575757575978 0.6565151515151516 0.3290151515151516 0.75 -0.21434343434343428 0.44916666666666666 0.75 0.75 0.3441666666666667 -1.1598569023569016 0.75 0.23916666666666664 -0.8260521885521879 -48.85719696969697 0.2875 0 0 3.764225589225589 -1.5587542087542063 38.66515151515151 0.75 0.02416666666666656 0.39249999999999996 0.30166666666666675 -0.21875 -0.15202020202020206 2.2772727272727167 0.75 0.40914141414141414 -0.13722222222222225 0.75 -1.6696548821548811 -0.14909090909090683 0.75 0.3833333333333334 -0.09999999999999987 0 0.3458333333333332 -3.994633838383833 0.039722222222222214 0.3053030303030303 0.26 0.4175 -7.250757575757576 0.4090993265993279 -0.6208333333333333 0.39166666666666666 0.15121212121212124 -2.5479166666666666 0 -0.9391035353535353 -1.0104797979797966 0.75 0.40800505050505054 -49.090833333333336 0 0.4541666666666667 2.0139898989898946 0.050000000000000044 0.0616666666666667 0.5151094276094303 0.42583333333333334 0.15340909090909083 -4.533017676767675 0.75 -0.039259259259256996 0.05624999999999991 6.110500841750844 -1.2109217171717153 -0.030239898989898872 -0.2729166666666669 1.5010858585858577 -2.005850168350166 0.75 0 -1.6632575757575756 1.5162752525252488 0.75 -11.706565656565651 0.3766666666666667 -20.031962682379344 0 0.30416666666666664 -0.2020833333333334 1.8358333333333308 0.75 0.75 0 -0.02108585858585854 -0.0854166666666667 0.04190656565656792 -0.08958333333333335 -0.029166666666661456 0.75 0.2648989898989899 -1.499797979797979 -3.7583136924803604 0.75 0.32166666666666666 0 -0.4902020202020203 -0.18761363636363637 -34.97453703703704 -0.13416666666666655 0.03125 0.75 0.07047979797980031 0 0.17568181818181838 0.06972222222222002 0.06426346801347071 0.75 0.75 -0.33333333333333326 -1.0541666666666667 -1.3184090909090933 -4.421351010101008 0.365 0.5113636363636364 0.3041666666666665 0.75 -0.006249999999999867 0.3962121212121186 0.75 2.4926360830527523 -0.004166666666666874 1.0265656565656611 -1.4333754208754186 0.11250000000000004 -0.22499999999999998 -0.3728535353535354 29.76460998877664 -0.38882575757575766 -0.3294402356902333 0 -0.275 -0.46034090909090897 -0.09883838383838395 -0.20176767676767682 1.5399200336700307 0.75 0.75 0.75 0.75 0.75 -3.1833207070707097 0.75 0.25909090909090904 -0.3558712121212122 0.75 0.49613636363637115 -1.9874999999999998 -0.20814393939393927 0.75 -0.5008838383838385 0.030833333333338375 0.75 0.75 0.016666666666666607 -0.4395833333333332 0.5616666666666665 -0.9953072390572393 0.9443560606060608 0.36250000000000004 0.255 0.15573232323232322 0.23958613916947202 0.17813131313131308 -0.23352272727272727 0.2534090909090909 0.75 0.5811868686868686 -0.10689393939393943 0.17666666666666664 0.75 0 -0.2004166666666667 0.75 0.2665909090909091 0.75 -0.14943181818181817 0.75 0.12083333333333846 0.75 -0.07708333333333339 0.75 -0.8547348484848485 3.233295454545448 -0.1590151515151514 -1.0612584175084152 3.034301346801349 0.3258333333333333 -1.8879166666666667 0.09375 0.75 0.6058333333333333 0.27888888888888885 0.12689393939393945 0 -0.037361111111108736 0.75 -0.7484217171717171 0.5833333333333335 0.75 0.75 0.10208333333333341 -0.2979166666666666 0.3383333333333333 -0.1020833333333333 -0.04458333333333331 2.2996085858585853 -0.025000000000000355 0.75 0.3408333333333333 -1.3199242424242417 0.75 -0.1260732323232323 0.75 0.19154040404040396 0.75 0.75 0.558510101010101 0.4075 0.75 -8.328522727272714 0.75 0.75 -0.1201515151515129 0.3147474747474748 0.41166666666666674 -6.561826599326601 1.271401515151515 0.75 0.75 -2.1866161616161555 -4.885656565656562 0.5883333333333334 0.75 -0.46477272727272734 -12.112546296296287 -0.3104166666666667 0.75 0.5107575757575757 0 -0.2250000000000001 0.3433333333333333 0.75 0.36249999999999993 -0.5799873737373737 4.364427609427619 -0.7823863636363635 -0.640088383838384 -0.05833333333333346 -1.0214015151515174 -9.399242424242424 31.194141414141413 0.75 1.0151515151515151 -0.32871212121212123 -0.21250000000000002 -0.1259469696969674 -0.031249999999999778 -0.02499999999999991 0.3284343434343434 -0.18541666666666679 0.3975000000000001 0.40022727272727276 -0.3927777777777717 0.75 0.8390151515151516 -11.059280303030299 -1.1344065656565645 -0.004166666666666652 -0.07083333333333353 0.5176262626262627 0.75 -0.23699494949494948 -0.06041666666666656 0.28583333333333333 0.14795454545454545 0 -0.2020833333333334 0.03125 25.588699494949495 0.30833333333333335 15.50633277216611 2.3431902356902388 -0.19999999999999762 -0.003219696969696928 0.75 -0.3219065656565656 0.75 0.37916666666666665 0.75 0.75 -0.7517045454545455 -0.6189141414141442 -0.22083333333333344 0 0.75 0.3633333333333333 0.3254040404040404 0 0.37916666666666665 0.345 2.439583333333333 -0.36098484848484846 3.7235339506172833 0.75 0.75 0.2693181818181789 0.75 -0.360029461279459 0.75 0.42 0.75 -1 0.1499999999999999 0.08832070707070727 0.3046464646464647 -19.76540404040404 0.31782828282828285 0.3916666666666666 -0.6573863636363662 1.8944823232323222 -1.471212121212119 0.34419191919191916 5.20217171717172 4.293181818181821 -0.15416666666666667 0.24583333333333335 2.7275336700336728 0.75 1.5501893939393991 2.0162878787878764 2.1549410774410767 0 0.75 -0.007462121212121087 -0.557689393939394 0.75 0.4633333333333334 0 0.5608333333333333 0.75 -0.007500000000000062 +scenario heads-up nit +deals 1000 +seed 1592590337 +counts 2175 19 0 +samples 0.75 0.75 0.38583333333333325 0.75 -1.0995454545454546 0.75 0.47583333333333333 -1.1088383838383864 -1.4571212121212123 0.75 0.9253030303030303 -0.06719696969696975 0.75 0.19732323232323234 1.6649621212121213 0.75 0.75 0.75 0.75 0.75 0.2946969696969697 0.75 0.75 0.75 0.75 0.05166666666666664 0.1622474747474747 0.75 0.75 0.75 0.013964646464646568 0.75 0.75 0.29406565656565653 0.46053030303030296 0.4083333333333333 0.75 0.75 1.1145833333333335 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.34166666666666656 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.5493686868686869 0.75 0.75 0.75 -0.6729166666666666 0.5533333333333333 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 -0.2847222222222222 0.75 0.75 -0.1383207070707071 0.75 0.75 0.27005050505050504 -1.039090909090909 -0.8269696969696969 0.75 0.75 0.75 -4.905997474747475 0.75 0.75 0.75 0.75 0.75 -0.990235690235691 0.75 0.75 0.75 0.75 1.0121843434343436 0.19666666666666666 0.75 1.2627272727272727 0.75 0.75 -0.7080555555555557 0.75 0.75 0.75 0.75 0.75 0.75 -0.6087752525252526 0.75 0.5533333333333333 0.75 0.75 0.75 0.75 0.75 0.36833333333333335 0.75 0.75 -1.5502525252525254 0.75 0.245 0.75 25.1756734006734 0.75 0.75 0.31540404040404013 0.75 0.75 2.0901515151515153 0.75 0.75 0.75 0.75 0.75 0.75 0.75 -0.07291666666666674 1.9083333333333332 0.75 0.75 0.75 -0.34928451178451025 0.75 -47.67790404040404 0.54 0.75 0.75 0.75 0.42199494949494953 -0.24583333333333335 0.75 0.3208333333333334 0.75 0.75 0.3466666666666667 0.75 0.75 0.75 0.75 0.75 0.75 0.75 1 0.3125 0.75 0.75 0.75 0.3118939393939394 0.31666666666666665 0.75 0.75 0.75 0.14381313131313134 -1.1880050505050506 0.75 0.75 0.75 9.997693602693603 -0.2729166666666667 0.75 0.34750000000000003 0.75 0.75 0.75 0.75 0.75 0.75 -4.995235690235686 0.75 0.75 1 0.75 0.3416666666666667 0.75 1.4072601010101011 0.75 -3.819469696969694 0.3030555555555555 0.75 -0.30827020202020206 0.7267424242424243 0.75 0.75 0.75 0.75 13.353409090909091 0.3375 0.9377525252525252 0.75 0.3314393939393939 -0.1729166666666666 0.3441666666666667 0.28623737373737373 0.75 0.75 0.75 20.575454545454548 0.75 0.75 0.75 0.08131313131313134 0.75 -0.18541666666666679 0.75 0.75 0.2708333333333333 -33.687289562289564 0.3130050505050505 0.75 0.75 0.23416666666666663 0.75 0.75 0.75 0.75 0.75 0.75 0.75 -0.46458333333333335 0.75 0.75 0.75 -0.9928661616161616 -0.41874999999999996 1 0.75 0.75 0.75 0.75 0.75 0.10416666666666652 -0.13958333333333328 0.75 0.75 0.75 0.3433333333333334 0.75 0.05296717171717169 0.75 0.75 0.2250000000000001 0.75 0.5556818181818184 0.75 0.75 0.22166666666666668 0.36749999999999994 -0.10833333333333339 0.75 0.4430303030303031 0.38882575757575744 1 1.459520202020202 0.3805303030303031 1 0.75 0.75 16.850631313131316 0.75 0.75 0.75 0.75 -0.7959848484848484 0.75 0.28335858585858587 0.75 0.75 -0.4186363636363637 0.75 0.75 0.75 0.75 0.1898989898989899 0.75 0.75 0.75 0.75 0.13583333333333325 0.75 -4.460690235690228 0.55 -0.7755555555555556 0.4339898989898989 -8.371906565656566 0.75 0.75 0.35 0.75 0.75 0.75 0.3123737373737372 0.75 0.75 0.75 0.75 0.4266666666666667 0.75 0.75 0.5570075757575759 0.0854166666666667 0.75 0.75 -0.3158333333333333 0.75 0.75 0.75 0.75 0.75 -0.11250000000000004 0.75 2.3833333333333333 0.3350000000000001 0.75 0.39848484848484855 0.75 0.75 0.36037878787878785 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.36666666666666664 0.75 0.75 0.75 0.4816666666666667 0.75 -0.8089015151515151 0.75 2.3957070707070702 0.75 0.75 0.4298484848484849 0.75 0.75 0.75 0.3575 0.3766666666666667 0.23083333333333333 -1.4275378787878787 0.75 0.75 -4.6106060606060595 0.75 0.75 0.75 0.75 0.75 -0.6766414141414142 0.75 0.3375 -48.79726430976431 0.75 0.75 -0.8323863636363638 0.009444444444444366 0.75 0.5966666666666667 0.75 0.75 0.75 0.75 0.75 0.75 0.75 -0.539583333333336 0.75 0.75 -0.6115530303030303 0.75 0.75 0.75 0.22999999999999998 0.75 0.75 0.415 0.31333333333333335 -0.29375000000000007 18.8302398989899 1 -0.046388888888888924 0.75 -0.3964015151515152 0.75 0.75 0.75 0.75 0.22833333333333333 0.75 0.75 0.09833333333333338 0.75 0.45833333333333326 -0.19999999999999996 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 -2.7089015151515152 0.75 0.75 0.45224747474747473 -48.41458333333333 2.0556060606060607 0.75 0.75 0.75 0.75 0.6092424242424244 0.75 0.75 -0.06458333333333344 0.75 0.75 0.75 0.75 0.75 -0.2991161616161617 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 -6.96674242424242 0.6333333333333333 0.75 0.75 0.75 0.75 0.29833333333333334 0.75 0.75 1.589583333333338 0.75 0.75 0.75 7.1869696969696975 0.75 0.75 -0.35265151515151516 0.75 0.75 0.75 -15.392474747474742 0.26 0.75 0.75 0.14924242424242418 0.75 0.75 0.75 0.75 3.2349579124578938 0.75 0.75 0.75 18.443333333333328 0.4947222222222223 0.75 -0.6173611111111111 -0.07291666666666663 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.5123484848484849 0.75 0.75 0.75 0.75 2.8217382154882156 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 1.1348484848484848 0.75 0.75 0.75 0.6025757575757577 -0.7722222222222221 0.3358333333333333 -0.12291666666666679 -0.5339393939393917 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 -0.5541666666666667 0.75 0.4083333333333332 0.75 0.75 1.1556186868686873 0.75 0.75 0.4075 0.75 0.75 0.75 -0.3612626262626263 0.75 1 0.75 0.75 0.75 0.75 -0.9093939393939394 0.75 0.75 0.75 0.75 1.1487121212121212 0.75 0.75 0.75 0.37083333333333335 0.5176767676767677 0.75 0.75 0.49136363636363634 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 1 -6.288712121212117 0.75 0.75 0.75 0.75 -0.04791666666666661 0.75 0.75 0.75 -0.13541666666666674 0.75 0.75 0.75 0.5857575757575757 10.880955387205391 0.39583333333333337 -0.033333333333333326 0.75 -0.012499999999999956 0.75 0.75 0.75 0.75 0.75 0.75 0.1925 0.75 -0.6986742424242424 0.75 0.75 0.75 0.75 0.75 0.23659090909090907 0.75 0.18666666666666665 1 -0.48503787878787874 0.75 49.18325757575757 -0.29080808080808085 -0.07499999999999996 0.75 0.30868686868686873 0.75 -0.4808080808080808 0.75 0.75 0.75 0.75 43.44843434343434 0.13416666666666666 0.75 0.75 0.75 -0.32790404040404053 0.3016666666666667 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 -48.85719696969697 0.2875 14.589882154882165 0.08499999999999996 -0.7249999999999996 -1.264141414141414 0.75 0.75 0.545 0.75 0.75 0.75 0.75 1 0.75 0.75 0.75 0.75 0.75 0.29 0.75 0.75 -0.022916666666666696 -0.14500000000000002 0.3458333333333332 0.75 0.39916666666666667 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 -0.04791666666666661 0.3333333333333333 0.75 0.75 0.75 0.75 -49.09083333333332 0.32916666666666666 0.75 0.75 0.75 0.44083333333333335 0.75 0.75 0.15340909090909083 0.06363636363636371 0.75 0.2688888888888889 -0.07499999999999996 -0.5479166666666666 -0.719128787878788 -0.3736742424242423 0.02083333333333337 0.31999999999999984 -0.7167929292929294 0.75 0.5503787878787878 -1.034469696969697 0.75 0.75 1.0712121212121213 0.3766666666666667 -0.35609427609427713 0.049646464646464605 0.75 0.75 0.5525 0.75 0.75 0.37416666666666665 -0.27108585858585854 0.75 -0.19109848484848468 -0.08958333333333335 1 0.75 0.30833333333333335 -0.1078787878787878 -2.570858585858588 0.75 0.75 0.2351767676767677 0.75 0.6875757575757576 -18.250631313131315 0.75 0.75 0.75 -0.3457575757575757 0.30083333333333334 0.75 0.43166666666666664 0.35583333333333333 0.75 0.75 0.75 -0.5541666666666667 2.014924242424242 0.75 0.75 0.75 0.75 0.75 -0.375 -0.3918560606060606 0.75 4.851969696969693 0.75 0.473030303030303 0.75 -0.05833333333333335 0.75 -0.3728535353535354 0.75 -0.6388257575757577 -3.284343434343432 0.23583333333333334 -0.275 0.75 0.75 0.75 0.583270202020202 0.75 0.75 0.75 0.75 0.75 0.3966666666666667 0.75 0.75 0.75 0.75 0.026704545454545592 0.75 0.75 0.75 0.75 0.6937500000000001 0.75 0.75 -0.3583333333333334 0.75 0.75 0.75 0.75 0.75 0.255 0.75 0.5866414141414142 0.75 -0.006249999999999978 0.2534090909090909 0.75 0.75 0.5893181818181819 0.75 0.75 1.0019023569023549 0.5725 0.75 0.35750000000000004 0.75 -0.14943181818181817 0.75 -1.3645833333333335 0.75 0.75 0.75 -2.0479166666666666 -1.2625 0.75 0.75 1.163510101010101 0.3258333333333333 0.75 0.75 0.75 0.75 0.75 0.75 0.3472727272727273 0.3491666666666667 0.75 -0.4517045454545454 0.75 0.75 0.75 -0.42733585858585854 0.75 0.75 -0.1020833333333333 0.75 0.3446212121212121 -0.3270833333333334 0.75 0.75 -0.780530303030303 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 6.025959595959598 0.75 0.75 0.75 0.75 0.75 41.44387626262626 0.75 0.75 0.75 0.75 0.75 0.75 0.75 -0.23750000000000004 0.11752525252525481 0.75 0.75 0.75 1.16984848484848 -0.2250000000000001 0.75 0.75 0.75 -0.5799873737373737 0.40827020202020203 -0.7823863636363635 0.75 -0.36875 0.75 -4.168181818181818 32.67685185185186 0.75 0.75 0.75 -0.21250000000000002 0.014393939393939403 0.75 -0.02499999999999991 0.75 0.75 0.75 0.75 1.0733333333333333 0.75 0.75 -8.573547979797977 0.03257575757575759 0.75 0.75 0.5176262626262627 0.75 0.75 0.3270833333333334 0.75 0.75 4.789974747474746 0.75 0.75 0.75 0.75 7.794368686868687 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 -0.2895833333333333 0.5846212121212121 -0.22083333333333344 -0.2653030303030304 0.75 0.75 0.75 0.2690909090909091 0.75 0.345 0.75 0.75 6.8371212121212075 0.75 0.75 0.75 0.75 -4.695 0.75 0.75 0.75 -0.9482323232323231 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.21916666666666668 0.75 -0.15416666666666667 0.985 -0.04375000000000018 0.75 0.75 0.75 0.75 0.138459595959596 0.75 0.75 0.75 0.75 0.75 0.28154040404040404 0.75 0.75 0.75 +scenario heads-up maniac +deals 1000 +seed 1592590337 +counts 5847 158 0 +samples -0.13497474747474736 -0.0938762626262668 -0.9336489898989898 14.813030303030306 -0.7865530303030304 -0.44267676767676734 -2.557474747474748 -6.637058080808076 1.1992382154882204 -0.19241161616161628 0 12.785921717171721 1.381969696969692 -14.253535353535355 -2.3708333333333336 -0.15626262626262621 -4.791969696969697 -0.3125 -0.16981060606060605 -0.5367424242424241 -0.05340909090909074 -2.4096590909090905 -39.56691919191919 0.04806818181818073 0 0.03333333333333344 3.835631313131308 0 -2.5078030303030303 1.2313636363636418 2.4464436026936056 8.500454545454547 0.2738762626262584 1.1912457912457906 0 -1.877651515151515 28.9020202020202 -2.549301346801342 0.4204545454545454 -2.49354797979798 -1.3142676767676769 -0.058800505050504825 1.8174747474747477 -8.440707070707074 -0.01496212121212126 0.06255050505050502 -0.0691666666666666 47.178257575757584 0 11.044242424242425 -0.7591919191919194 -0.9484848484848487 -1.1653030303030303 0.1469949494949495 -0.696780303030303 45.76357323232324 1.1353535353535351 -0.6571969696969696 -1.6963636363636365 2.168055555555555 -0.75 -4.720681818181818 0.46825757575757576 0.3538131313131313 -2.5315404040404044 -1.6103787878787879 -2.89310606060606 -5.910454545454546 1.3884090909090916 -0.3436489898989874 0.6231944444444446 0.039166666666667016 10.992121212121212 10.195202020202018 0.6686111111111118 0.304520202020202 -3.857702020202021 1.5078072390572363 -1.9940656565656565 -1.8454545454545457 1.983585858585859 24.610820707070708 7.349309764309765 -11.873358585858586 -18.18693181818182 -2.342651515151515 -20.945538720538725 9.842803030303031 -1.5322727272727272 -6.75109848484848 -0.6178282828282833 1.8604545454545496 1.8690235690235744 -2.3954545454545455 1.384520202020202 -1.937878787878788 0.3358333333333333 -5.904356060606067 -2.009406565656566 -0.7787878787878788 0.15202020202020194 -2.221590909090909 -1.3969318181818182 0 -1.8455303030303032 -5.630000000000001 2.5116666666666667 -1.4118181818181819 -0.2908333333333333 -0.3576893939393939 -0.75 43.09782828282829 -0.901300505050505 0.07250000000000006 39.57138888888888 0.9732702020202013 4.2617045454545455 44.22588383838384 -0.04791666666666683 -0.29015151515151516 -0.27 1.2072390572390566 1.190795454545455 2.302083333333334 1.0186363636363636 47.936313131313135 -0.8834595959595959 0.41840909090909095 42.96207070707071 28.816010101010104 -0.6281439393939395 -40.336363636363636 0.6417676767676767 -3.823888888888891 44.781830808080805 -0.3210227272727273 5.754776936026941 0.17707070707070705 -3.9613636363636386 -2.622916666666667 2.2985479797979798 0.0086489898989901 -2.7420833333333334 0.009987373737373906 18.06679292929293 1.0953409090909132 13.322895622895622 -0.9638257575757576 -4.9686742424242425 -1.1929166666666666 -0.7235353535353534 -0.3362373737373736 48.75416666666667 0.09265151515151515 -1.8606691919191918 0.44565656565656564 -0.9383964646464646 -0.4409090909090907 -0.46378787878787886 7.429797979797979 -0.3179166666666666 0.05770202020201998 2.81719696969697 0.4762500000000003 0.5783333333333334 -23.93540404040404 -0.09375 -0.3359090909090907 0.8679545454545456 -0.6774242424242424 13.550265151515154 0 -2.8652398989898993 0.5321969696969697 -2.8623358585858583 7.489541245791245 -1.2737331649831671 -0.15333333333333332 -2.0445833333333336 0.6518560606060606 0 -1.973611111111111 -1.8431818181818185 -0.043749999999999956 -2.7502651515151517 -0.14069444444444446 1.0234217171717217 -0.6160984848484847 2.2406439393939395 -0.289343434343432 -22.377020202020205 -0.9302651515151514 0.28368686868686865 32.96483585858586 -2.0203030303030305 -1.7978535353535352 -0.04746212121212123 3.0015277777777767 -2.122840909090909 0 0 -6.702462121212122 0.09999999999999976 0.9779545454545464 -3.203787878787879 -23.917323232323234 -2.6 -0.6775883838383838 0.031249999999999778 -1.8934974747474749 0.30416666666667136 1.4262121212121213 -0.1729166666666666 -3.17885101010101 -2.020770202020202 4.804840067340067 -0.7332070707070706 2.3511742424242423 0.2546717171717172 39.64814393939394 0.7725631313131315 -0.7989267676767675 2.0704924242424236 1.0705597643097668 -1.6140656565656566 -1.8192550505050504 -0.20272727272727287 -2.7 -2.3420454545454548 -18.578181818181818 48.26578282828283 -0.33765151515151504 6.545202020202019 -0.1912499999999998 -0.1541287878787878 -12.626363636363637 -0.125 -5.997424242424243 -0.5557575757575758 9.513308080808079 -0.4965909090909092 46.713750000000005 -0.05191919191919192 -1.8026893939393938 0.44007575757575734 26.567045454545465 -2.9762500000000003 29.571578282828284 -0.07666666666666666 2.4377651515151513 0.75 -0.11189393939393932 -2.9314015151515154 -0.7392045454545457 -0.6850378787878788 0.3640151515151515 47.19886363636363 1.3547474747474744 -8.319053030303031 -0.3138257575757575 4.0561742424242375 -0.36073232323232307 -0.6173358585858586 2.2 3.804877946127947 7.134974747474756 -0.8123358585858587 -0.6070833333333333 1.1472727272727274 0 -0.3075757575757576 2.084318181818182 7.62631313131313 -2.5166666666666666 0.21186868686868365 3.076262626262626 -0.10132575757575757 -5.284772727272729 -1.7169570707070707 4.560871212121211 25.156039562289564 -0.18708333333333338 -0.8241792929292928 0.04185606060606095 4.279848484848484 3.447209595959605 -1.184090909090909 1.8384890572390562 -1.827929292929293 -0.3915909090909091 8.151325757575759 -0.42549242424242417 -2.748522727272727 0.445 -0.7644318181818182 2.791919191919192 -0.31420454545454546 -0.5177651515151513 -26.355113636363633 -0.15833333333333321 -2.0540404040404043 -0.23564393939393946 2.317020202020199 -3.300063131313131 33.12190656565657 -0.3078914141414142 48.01428451178451 -2.0144696969696967 -0.2877020202020202 0 1.7049999999999998 0.1537878787878788 0.4327272727272725 7.256818181818177 -7.446893939393938 0 -1.7511363636363633 -0.8220328282828282 -2.0645202020202023 31.21318181818182 -0.782537878787879 2.397234848484848 -0.01041666666666663 -6.539848484848481 -0.7323863636363637 9.387537878787878 1.0803114478114457 -1.9809343434343436 0.8141666666666691 48.532272727272726 0.3425 -0.5333964646464647 -6.526553030303031 39.73833333333333 -0.09708333333333297 -0.377739898989899 1.3242424242424298 0 0 -0.19261363636363638 0.48011363636363186 0.35583333333333333 -0.17676767676767613 0.436439393939394 -23.428535353535352 -0.45462121212121476 2.588181818181818 0.5260984848484851 0.8753745791245797 -2.666666666666667 0.16449494949494947 -0.6047348484848483 -0.8665656565656567 -0.17374999999999996 0.5545033670033697 -0.75 0.46881313131313374 0 -2.3895833333333334 2.446590909090909 -0.9035353535353536 -1.3548569023568975 7.541287878787879 -0.35224747474747464 -1.9931818181818184 -13.391022727272729 -0.601439393939394 31.386300505050507 -2.9582954545454543 28.2214436026936 -5.724810606060606 -0.631439393939394 -0.7096590909090912 2.2213383838383836 -0.7634974747474749 0.3508080808080808 -2.2799242424242427 -0.051969696969697 -1.9594065656565653 0.09222222222222598 -2.15334595959596 2.4869696969696973 -1.508333333333331 14.933888888888887 -2.5393560606060603 3.04 1.966969696969697 -0.25625 0.5711363636363637 38.633569023569024 -0.5318560606060605 -0.11061868686868642 -0.04234848484848486 0.12291666666666667 44.80847222222223 -0.5736742424242424 0.5113005050505006 -2.419204545454545 10.843838383838385 0.11506313131313128 -2.601590909090909 -0.5113005050505053 7.856144781144785 -1.9993181818181818 0.06666666666666687 -27.007954545454545 -1.1446338383838395 47.61313131313131 0 -2.0219318181818178 -0.018750000000000044 34.17787878787878 0.09640151515151518 -1.5550757575757577 5.396805555555556 -2.144128787878788 -0.15119949494949492 0.17106060606060602 1.9124621212121213 0.15489898989898987 0 -2.3079545454545456 -27.9397601010101 0.8211489898989873 2.1062878787878763 12.46580808080809 2.4748863636363634 0.1628661616161664 6.157575757575769 -2.8504924242424243 -0.5361111111111111 -0.5382575757575755 -0.5169318181818181 -5.837121212121213 -0.313699494949495 1.5911616161616167 2.2587121212121213 -1.2778787878787878 -1.480050505050505 -0.1293181818181819 21.327462121212122 -0.6583333333333332 30.19693181818182 2.33060606060606 9.397045454545463 0 4.413489057239052 -0.028977272727272352 -2.648282828282828 -3.0491161616161615 -2.397348484848485 -0.14628787878787886 1.4639015151515196 -0.4343560606060607 -0.2840909090909096 0.23955808080808072 -0.874242424242424 -2.202727272727273 1.8681818181818182 -0.004166666666666874 -2.381931818181818 -1.8648484848484848 0.3661363636363636 -0.05060606060606054 0.17372474747474742 -1.3739898989898993 0 -3.0816287878787882 2.465 0.16462121212121206 45.2539393939394 -0.4118181818181814 -2.784911616161616 0.19166666666666665 2.18125 -40.91135101010101 0 0.20487373737373749 -0.5254545454545455 -5.8007954545454545 -0.5893181818181817 -1.498169191919192 -0.6195075757575756 -38.10075757575758 1.0583333333333333 -6.024924242424241 0.8237121212121216 1.5666624579124568 -0.002083333333333437 -0.2132954545454545 -11.936325757575759 -3.174545454545455 0.28333333333333144 0.3720833333333333 -2.667550505050505 0.1526220538720492 0.10755050505050501 -2.7416035353535357 -0.20833333333333337 45.85378787878787 -0.2416666666666667 -1.2495833333333333 0.19833333333333347 -17.967424242424244 -0.39513888888888893 0.13268939393939405 21.656397306397306 -0.05208333333333337 0.5906818181818181 0.49902777777777785 -1.918712121212121 -1.1483585858585859 9.272462121212122 -1.2491287878787878 -14.670833333333338 -0.4892045454545455 1.7198232323232294 -1.1103282828282828 -0.5598106060606061 -0.605568181818182 -0.75 -0.39136363636363614 12.718257575757576 -1.4364141414141411 -0.2695833333333333 -1.196401515151515 0.3625 -2.0125378787878785 -1.9256439393939393 -4.378977272727274 -6.409911616161616 -0.5449242424242424 -0.06875000000000009 1.4023611111111156 -43.71748737373737 -2.700707070707071 1.7039772727272724 -1.9656565656565657 -0.4989520202020204 -2.6437500000000003 47.97208333333334 -0.33204545454545453 -0.06513888888888897 0.75 -2.1164772727272725 -0.5420202020202018 0.2604545454545455 11.999772727272735 -0.1296590909090909 11.315505050505049 -0.21905303030303447 -0.4829419191919193 8.284974747474752 47.774810606060605 4.805050505050506 -2.9576136363636367 -5.628661616161617 0.17420454545454556 0.06585858585858595 3.032828282828283 17.509953703703708 -0.7465151515151516 -0.7671464646464645 0.4700757575757575 -1.4958207070707092 -0.3525252525252527 0 -1.175416666666667 21.53907828282828 -2.716666666666667 -0.47492424242424236 0.22094696969696992 0.05662878787878778 0.19026515151515155 -0.039583333333333304 -10.186237373737372 7.444570707070707 0.32333333333333325 0.9018686868686867 -1.960290404040404 -1.9271590909090908 -0.15321969696969728 0.5455681818181819 -0.28541666666666654 -0.05012626262626252 -2.0013257575757573 0.7093181818181817 1.2950378787878787 -2.268977272727275 -0.3978030303030302 0.2917676767676768 -1.8696338383838382 1.7331228956228948 0.07847222222222228 -1.247020202020202 -19.081174242424243 0.8370707070707072 -0.4510479797979823 -0.4650126262626264 -37.257954545454545 -2.949242424242424 47.6724537037037 -0.18819444444444455 -0.17393939393939395 0.385 -1.699166666666664 2.2621590909090914 -0.19324494949494953 0.40416666666666656 -0.9064520202020202 -6.3449494949494945 47.05386363636364 -2.2778409090909086 0.0877525252525252 1.200946969696969 -0.12749999999999995 -1.355757575757576 -1.304469696969697 0.10833333333333317 0.03893939393939383 -0.5916666666666668 -2.036300505050505 -0.014166666666671102 -0.1070833333333332 -0.3450757575757577 -0.23414141414141404 -0.6601010101010101 -0.81375 -13.624962121212123 8.911931818181818 0.16893939393939417 0.060833333333333184 8.298106060606061 20.434722222222227 12.560113636363646 0.10624999999999996 0 0 -1.7401515151515148 24.312651515151515 -0.040467171717171846 -0.15988636363636355 0.5259680134680114 -1.2175 -34.68645202020202 -1.9307575757575757 7.10363636363637 -0.35722222222221944 -1.6020833333333333 0.004166666666666763 -0.7887752525252526 -1.7382702020202019 0.3665824915824887 -1.8688131313131313 -0.10992424242424237 -0.2097727272727271 -4.5359974747474645 -0.10833333333333317 1.5554545454545454 0.41936868686868684 -0.22212121212121216 -4.076755050505049 0.3441666666666667 -18.27909090909091 -1.4891287878787876 -1.5533459595959596 9.296969696969693 -0.047916666666672825 -0.5005681818181817 -39.939204545454544 1.4045454545454552 43.6469696969697 13.108648989898994 -36.0519696969697 -2.880530303030303 2.2050757575757576 -0.52625 -10.264810606060607 1.5994318181818183 0.09797979797979794 -12.419848484848487 -0.5495454545454521 0.6389604377104329 -0.5980176767676769 0.09750000000000014 -13.618434343434345 -3.0415530303030307 0.40265151515151515 -2.0797348484848484 3.366578282828282 -0.1312500000000001 -1.977335858585859 40.44734848484848 -10.516136363636363 -2.493181818181818 0.26 -2.0857323232323237 0.49995791245790744 -0.7216666666666663 -1.3280303030303031 -2.310416666666667 48.89073232323232 -3.0775883838383837 0 -1.7856186868686872 41.226704545454545 0.002083333333333215 -0.21584595959595965 48.86212121212122 0 -1.878787878787879 -13.439217171717171 -0.7338636363636363 -2.6756060606060608 -0.32991582491582216 0.11333333333333334 -4.808712121212118 -5.7183712121212125 41.13207070707071 7.12726851851852 -0.20999999999999996 2.0162499999999994 3.7407954545454554 3.8619528619528567 1.494507575757575 -2.6517424242424243 -2.0273358585858587 1.6047727272727275 -0.7155303030303033 -8.59652777777778 38.80349747474748 -1.2284469696969698 -14.218560606060606 -0.16875000000000018 4.798834175084174 -0.005808080808080707 0.07638888888888884 -1.2445833333333334 42.28098484848485 -0.09375 1.3607828282828325 0 0.016666666666666496 -0.9255681818181819 4.900542929292937 -0.594760101010101 -0.31742424242423795 0.75 0 17.783333333333324 33.96858585858586 0.10977272727272724 -0.06833333333333347 0 -0.012929292929293124 -2.288219696969697 -22.62632575757575 -1.4750757575757574 -1.4914772727272727 2.4594823232323235 47.68628787878788 2.7325757575757574 0.005227272727272969 3.024166666666667 3.7164688552188543 -2.1662878787878785 -1.3213636363636363 -2.135353535353535 -0.8041666666666667 0.5660984848484802 -2.2976136363636366 -2.008143939393939 1.088535353535353 -2.704242424242424 0.4 4.49888888888889 -4.417159090909091 -0.16359848484848483 -27.242386363636367 -0.8210227272727298 -0.7030303030303031 5.208686868686872 5.823131313131313 -1.40010101010101 -0.12500000000000044 -45.17265151515152 10.21117424242425 44.57779882154882 -1.8823863636363634 0.07083333333333319 7.038295454545455 -8.23287878787879 19.17018097643098 -13.44741161616162 -0.933939393939394 -2.4640909090909093 0.9674242424242425 -1.7820075757575757 0.3641666666666667 -4.773825757575757 -17.598674242424245 3.4321969696969656 -0.13541666666666674 -2.773169191919192 -4.041843434343434 1.652462121212122 0.05833333333333357 -2.308068181818182 0.6193602693602716 -2.9175 -1.1171085858585856 -0.1644444444444445 -4.153787878787879 -0.4395833333333332 -0.21693181818181828 36.044330808080815 -2.4642803030303027 -0.8831439393939393 0 46.25002104377104 5.447739898989898 -1.9671969696969696 0.17291666666666639 0.1102272727272724 1.0951767676767723 2.4312500000000004 3.005075757575758 3.077651515151516 -0.26382575757575744 0 -2.555416666666667 -0.7984090909090907 0 0.5616666666666666 -0.04166666666666696 0.048257575757576 -2.776136363636364 -3.000277777777778 -0.23958333333333337 -7.995551346801344 -2.230871212121212 42.470113636363635 -2.545479797979798 10.81508838383838 -3.3325547138047136 0 -1.9788257575757577 3.682689393939394 -22.553611111111124 -3.035770202020202 0.27888888888888885 0 2.381818181818182 -0.8242803030303028 -0.5195833333333334 0.5568602693602642 1.9878787878787874 12.07526515151515 0.4556818181818183 46.585189393939395 -0.7109217171717173 0.3383333333333333 -0.5793560606060606 -1.8068560606060606 6.221174242424246 0.7772095959595957 -0.7141666666666666 0 34.84659090909092 5.008585858585862 0.38114898989898993 -2.1225757575757576 1.3573442760942807 -1.7334469696969697 -5.179280303030303 1.280479797979793 0.18666666666666676 0.3344318181818182 8.708244949494947 -2.4484469696969695 -1.3646338383838383 -0.643560606060606 2.752878787878788 -0.6940025252525253 -48.749229797979794 2.2817045454545406 -1.1864898989898989 46.538952020202025 -5.4290404040404034 -4.543674242424242 -2.74885101010101 -0.5396969696969697 11.999242424242434 -23.29483585858586 -6.142045454545454 0.17652777777777784 0.38897727272727267 14.871969696969693 -3.58510101010101 0 3.3625757575757573 0.13876262626262625 -0.5799873737373737 4.3399663299663365 -0.75 -0.28680555555555565 4.726249999999999 -0.008333333333333304 5.1613425925925895 30.098787878787878 -1.1966666666666668 1.0151515151515151 -0.9349621212121212 -2.5668560606060606 -3.4017045454545456 -0.3790656565656563 5.0625 0.045580808080808 -1.489507575757576 1.7649873737373736 1.0527525252525232 -2.321161616161617 -0.16208333333333336 -0.7460227272727273 36.6402398989899 -6.061174242424243 -3.40550505050505 -0.1725000000000002 -0.5482323232323232 -8.351818181818182 -0.3196969696969697 -1.5866540404040403 -3.160681818181818 0 -0.6598484848484849 -0.5033038720538716 -0.7776641414141414 44.134520202020205 -0.07468434343434383 32.954823232323236 -40.186439393939395 -2.487689393939394 0.062499999999999556 -2.5206439393939393 -0.07190656565656561 -1.7163636363636363 0.28623737373737373 -2.513409090909091 -0.2288257575757573 -0.13333333333333353 -5.789393939393939 0.4075757575757577 2.9087121212121207 0.4182323232323232 0.3633333333333333 0.8635774410774433 8.886805555555556 0 -0.7635101010101011 -1.6072348484848482 -0.38742424242424234 37.735542929292926 -0.16282828282828266 0.37424242424242427 2.0865151515151505 -1.0903787878787878 -0.5992045454545454 0.16180555555555554 -1.365037878787879 0.3393181818181818 0.014898989898990411 -2.238257575757576 4.403867845117847 29.49625 26.06376262626263 -0.02998737373737348 0.04252525252525241 2.012121212121212 12.356098484848486 -1.8651515151515152 0.008775252525252464 8.948787878787877 4.373257575757575 -0.15416666666666667 -2.2541666666666664 18.56159090909091 -1.7717297979797983 -16.96414141414141 2.0648232323232323 -40.09314393939394 3.171022727272728 -0.8697727272727274 0.807201178451183 -0.3011237373737373 0.38083333333333336 1.1779797979797981 2.548232323232323 -0.2037500000000001 -2.149924242424243 -0.3778030303030304 +scenario heads-up fish +deals 1000 +seed 1592590337 +counts 7696 55 0 +samples -0.054166666666666585 0.41369949494949076 0.38905303030302774 4.549713804713807 4.41491161616162 0.13560606060606095 0.1299999999999999 0.6230429292929318 3.3772483164983207 0.9525378787878839 0.7733459595959598 12.718724747474752 3.6329545454545404 1.479141414141419 -0.173863636363641 -0.20916666666666672 3.4698484848484874 1.1058333333333334 0.22791666666666666 -0.3175 0.24128787878787894 0.2029166666666668 5.757673400673404 -7.8024368686868755 0.2675 0.30916666666666676 3.8618055555555495 0.36 -0.26083333333333325 0.14808080808081292 2.4604082491582524 1.133787878787884 0.4253914141414099 1.6031144781144773 2.2083207070707065 0.2958333333333335 13.833501683501687 0.08579966329966804 -0.43996212121212075 -0.01041666666666674 -0.020707070707068453 -0.031022727272729367 0.2711489898989903 0.1072727272727273 -1.1210227272727202 0.1700000000000001 -0.03750000000000009 46.816304713804726 1.0277904040404062 1.9533333333333311 0.7180808080808079 -0.20416666666666672 0.43318181818181545 -0.03261363636363657 0.14708333333333323 -39.93844696969698 1.9788720538720532 -0.7863636363636363 0.05212121212121179 0.29166666666666663 -0.03541666666666643 0.26356060606060616 0.1267803030303032 0.12458333333333327 2.1975000000000002 -0.35583333333333345 -1.8824999999999976 0.20166666666666666 -0.26916666666666655 0.06354797979797744 0.4023021885521907 0.015833333333333588 4.07010101010101 1.817500000000005 7.337037037037037 -4.276666666666666 -0.012499999999999956 1.5078072390572363 1.0591666666666715 -0.40000000000000013 0.14505050505050504 22.170896464646468 7.7916329966329965 1.8541414141414143 1.2024621212121258 -0.2926515151515152 4.141498316498312 2.4709343434343425 -0.47015151515151765 0.6958712121212167 -0.004166666666666652 1.0358080808080854 0.8787878787878833 -0.1499999999999999 2.2491666666666665 0.7734848484848484 0.24208333333333332 -0.8643728956228951 0.5029166666666666 -0.28636363636363904 -0.404276094276097 -1.2746212121212144 2.3587499999999997 5.484621212121211 -1.300833333333331 0.19833333333333336 2.5116666666666667 2.4450000000000003 0.5424999999999953 -0.13041666666666663 35.48785774410774 -0.7173653198653196 -0.08625000000000005 0.07250000000000006 4.838055555555563 2.8944823232323227 4.666654040404042 33.529671717171716 0.3204166666666665 -0.29015151515151516 -0.27 -2.105892255892257 0.10291666666666666 1.3703156565656598 0.7769696969696972 18.82026936026936 0.08750000000000002 -0.24750000000000005 11.52234848484849 5.407777777777781 -1.1281439393939372 -37.87121212121212 1.4528787878787877 0.6013636363636314 4.455063131313133 0.8050378787878834 12.449221380471384 0.1908333333333333 1.2553661616161607 -0.008333333333333526 -1.6812499999999977 1.5661405723905724 0.00416666666666643 1.8559469696969746 11.674957912457918 1.2256439393939436 -22.6753367003367 -0.805138888888889 0.9085479797979849 -1.859583333333331 0.0050000000000001155 3.244848484848491 10.791666666666664 0.6600757575757574 0.8642045454545456 0.07318181818181801 2.3595833333333336 0.2466666666666668 -0.4435858585858611 -6.555808080808079 -0.3179166666666666 1.0669612794612895 0.8626515151515107 2.5972937710437733 0.5783333333333334 -0.029166666666674335 0.28125 -0.027083333333333126 -1.3712499999999974 -0.18499999999999994 2.1209217171717163 0.31666666666666665 -1.8829166666666644 0.4009469696969696 -0.09708333333333341 1.8000210437710478 1.466645622895621 -0.15333333333333332 0.2679166666666665 -5.955046296296293 9.997693602693603 -2.4458333333333333 0.28499999999999986 0.3037500000000001 0.8962499999999998 6.7229419191919195 1.6395833333333378 -0.04791666666666661 0.4209469696969699 -0.289343434343432 0.06666666666667354 0.30458333333333354 0.7412836700336654 10.505808080808084 -1.7399999999999975 0.16249999999999998 0.19041666666666668 1.0885942760942748 -0.013749999999999873 21.52806818181819 0.2516666666666666 -1.6645833333333309 0.21868686868686849 0.7987121212121258 0.18333333333333335 0.35483164983164517 -0.09999999999999998 -1.2306186868686844 10.218118686868678 0.3770833333333333 0.6327020202020246 2.2216666666666667 0.15852272727272732 -0.0854166666666667 0.19208333333333333 10.183670033670028 0.3058333333333334 14.251005892255897 1.436553030303035 5.548253367003362 1.260778619528622 0.5923863636363638 -0.02041666666666675 1.151872895622898 4.033472222222226 0.48623737373737375 -0.20272727272727287 0.050000000000000044 0.25833333333333314 2.356481481481475 25.159132996632998 -0.33765151515151504 0.15883838383838755 0.3404166666666668 -1.0010984848484779 0.047916666666659724 2.2375 -4.6964983164983085 -0.5557575757575758 -2.9620580808080774 -1.786994949494947 14.510185185185188 -0.7179545454545456 1.21625 0.44007575757575734 23.75563973063973 -0.09166666666666656 9.995475589225585 -1.300719696969697 -0.062234848484848615 0.14575757575757575 0.08416666666666683 -0.43140151515151515 -0.02708333333333357 -0.0958333333333331 0.24356060606060637 -12.919128787878796 -0.08666666666666645 0.2579166666666669 -0.04166666666666674 3.3056397306397267 -1.7041666666666642 -0.0904166666666667 -0.13958333333333317 0.7690193602693556 3.4582070707070667 1.1295833333333334 -0.2945833333333332 0.19833333333333325 0.1862499999999998 0.033333333333333215 -1.5552651515151537 3.6099494949494986 0.5893939393939349 21.670349326599336 0.945294612794612 6.123985690235693 0.7905303030302981 -1.0515530303030305 0.5246001683501635 20.963615319865312 1.4795833333333381 -0.32291666666666663 0.37185606060606097 5.517045454545463 3.466452020202032 0.04166666666666674 2.121847643097642 3.7869696969696918 -1.6819949494949473 2.35867424242424 0.003750000000000142 -0.11124999999999996 0.20333333333333353 1.2999621212121253 0.95740740740741 -3.4518308080808113 0.050416666666666776 -0.16178030303030766 0.2183333333333335 0.31916666666666194 -0.23564393939393946 6.208333333333336 -0.14375000000000004 0.9937415824915847 5.824751683501686 4.103076599326596 0.12416666666666676 0.013749999999999929 0.1562500000000001 0.20499999999999996 0.35833333333333334 0.6031818181818135 -0.10429292929293199 1.9288636363636416 0.8251515151515105 0.35583333333333345 1.3967297979797981 3.8419444444444406 -35.4947095959596 -0.1954166666666668 0.42348484848484613 0.14867424242424243 -0.027083333333333126 1.3812499999999996 1.48890151515152 1.0803114478114457 0.22749999999999987 3.114065656565655 9.853434343434344 0.1362500000000002 0.05624999999999991 11.470753367003375 -1.5708333333333333 0.23291666666666677 -1.8537499999999976 1.5272727272727327 1.1716666666666615 0.27166666666666667 1.317765151515156 0.6164772727272683 2.745164141414138 0.05050505050505105 -0.12416666666666654 0.6943434343434389 -0.45462121212121476 0.08818181818181814 0.41246212121211867 3.0243644781144834 -2.3000000000000003 6.355214646464643 0.8687499999999955 -0.08500000000000008 1.5222601010101053 -1.8785774410774452 0.06306818181818175 1.8008838383838375 0.9015782828282846 0.5081439393939392 -0.05340909090909107 0.8040909090909136 3.8095622895622983 7.635227272727273 -0.25249999999999995 0.18249999999999994 0.25791666666666657 0.3141666666666666 11.916687710437714 -1.9993560606060607 8.513110269360268 -2.2351641414141383 -0.22250000000000003 0.60405303030303 -0.12083333333333357 -0.0720833333333335 0.2158333333333331 -0.027083333333333237 2.410151515151515 -1.6219065656565652 -0.05484006734006641 0.13874999999999976 0.1900000000000001 0.7700757575757597 0.9409259259259253 0.00003787878787875343 -0.15333333333333332 2.182878787878788 -0.25625 -0.08378787878787863 8.430202020202016 -0.35518939393939386 1.8974621212121217 0.025833333333333375 0.5395833333333357 6.167394781144777 -1.8929166666666641 0.5113005050505006 -0.17375000000000007 2.5818686868686864 0.22617424242424244 0.3025 0.51880050505051 7.317508417508421 0.10249999999999998 1.0744444444444405 2.116919191919191 14.76374158249159 13.891792929292933 3.9316414141414104 0.25458333333333333 -0.018750000000000044 38.064806397306405 0.21458333333333335 -0.2058333333333333 5.028118686868687 0.4137500000000001 -0.07291666666666663 0.20666666666666678 0.2929166666666666 0.1629166666666667 1.1270833333333332 -0.44431818181818183 0.779936868686868 0.8211489898989873 2.747550505050509 11.680959595959607 0.6726136363636315 -0.08258838383837919 1.7762626262626227 -0.18079545454544999 0.07499999999999996 0.12083333333333357 0.09670454545454554 -0.09757575757575743 1.4534722222222194 -1.6083333333333307 4.953661616161618 0.7221212121212122 -5.845833333333328 0.4211868686868687 11.10279882154883 0.31875 0.8287500000000001 1.1758585858585908 -23.60164141414141 -0.8106818181818249 4.413489057239052 0.38518939393939433 0.046666666666666634 0.029166666666666563 1.0331060606060654 0.02295454545454545 -2.2734722222222192 -0.17375000000000007 -0.061868686868689515 -0.2579166666666669 -0.8832070707070705 0.12416666666666665 0.02499999999999991 0.6986952861952882 -0.3554166666666668 0.24500000000000016 0.22371212121212147 0.03708333333333341 0.5626136363636363 2.5675505050505016 0.14124999999999988 0.03958333333333308 1.8300000000000047 6.38042508417508 3.0881060606060666 0 0.08125000000000004 0.5893939393939394 2.18125 -22.317916666666665 0.29833333333333334 0.2675000000000001 -0.2466666666666667 1.7541666666666718 0.020277777777779615 1.1471338383838385 0.20958333333333345 -28.384848484848483 0.08333333333333326 3.1828535353535314 0.38308080808080336 1.5666624579124568 1.3278829966330012 0.1917550505050506 -22.621746632996626 0.30999999999999983 4.662962962962959 0.3720833333333333 1.5791666666666702 0.4480765993265947 0.3525 -0.30625000000000024 -0.3191666666666667 2.639654882154879 -0.2416666666666667 0.0004166666666667873 0.19833333333333347 -24.796734006734003 1.5940277777777705 -0.08973484848484825 3.1865740740740742 -0.05208333333333337 -0.10250000000000015 -0.19541666666666668 1.0358333333333378 1.7781060606060606 1.1664015151515201 -0.5021590909090907 0.14229797979798198 0.70117424242424 7.553156565656565 0.13462121212121203 -0.12041666666666662 1.6955681818181818 1.1696969696969663 -0.2549999999999998 -0.20800505050505047 7.288333333333333 -0.13069444444444445 -0.2645833333333334 0.25833333333333325 -0.2170833333333333 0.28041666666666665 0.47253787878787445 0.5623106060606016 -0.015883838383838222 -0.06875000000000009 0.7830681818181866 5.685037878787877 0.2483333333333334 0.05624999999999991 -0.5078787878787905 0.7545833333333332 0.06458333333333832 7.222083333333334 -0.1941666666666667 -1.6610984848484873 -0.15375000000000016 -0.060416666666666785 -0.08999999999999986 0.4451136363636367 3.8888678451178387 -0.1296590909090909 1.6127104377104369 0.07499999999999307 0.10291666666666655 5.198758417508419 2.8719570707070776 -0.0333333333333401 0.3682954545454544 0.016767676767676654 0.12875000000000014 -1.6063636363636387 0.26449494949494956 3.898842592592602 0.08124999999999982 2.3641666666666667 0.7352272727272682 6.010239898989898 -0.01666666666666683 1.1068560606060558 -0.1754166666666669 5.603977272727276 0.17583333333333323 -0.3158333333333333 -0.17496212121212118 0.2270833333333332 0.1968308080808081 0.0632954545454546 0.27916666666666656 3.1152777777777816 0.32333333333333325 4.05875 2.21415404040404 -0.78170454545455 1.4840530303030346 0.1970833333333334 -0.28541666666666654 -0.1725757575757575 -0.1545833333333334 -5.94486952861953 0.4768560606060561 -1.6364015151515177 -1.6023484848484826 0.24208333333333332 0.3020833333333334 6.675353535353531 0.18194444444444435 0.2883333333333335 0.8546843434343483 -0.02083333333333315 -4.1128493265993225 -0.0887500000000001 -45.045833333333334 -1.1583333333333334 2.4975799663299716 0.4039772727272726 -0.17393939393939395 0.41492424242424275 -1.699166666666664 1.8638888888888874 2.3120244107744172 0.13124999999999987 -1.8029166666666643 0.6145454545454594 13.69534932659933 0.0687500000000002 2.27209595959596 2.7054924242424194 -0.12749999999999995 -1.7966666666666644 8.344015151515155 0.26910774410775096 0.32833333333333325 0.4083333333333333 0.16874999999999984 0.3508333333333288 -0.1070833333333332 0.6633207070707022 0.6421212121212168 0.04166666666666674 -3.2278914141414172 0.37241161616161333 0.03125 0.40553030303030324 0.060833333333333184 1.6072474747474792 11.249221380471385 4.804608585858593 2.204734848484848 2.514760101010104 0.16020202020202046 3.8084175084175023 44.657954545454544 1.7522264309764357 -0.15988636363636355 1.987584175084173 -0.21750000000000003 0.27364898989899666 0.2283333333333334 0.9364393939393935 -33.12664983164983 0.5320833333333334 2.5125 -0.16125000000000012 0.08875000000000005 24.855723905723906 0.31416666666666665 0.8002272727272703 -1.3423484848484826 4.807992424242425 0.013661616161616319 -0.21434343434343428 0.14499999999999996 -0.14636363636363647 0.08991161616162158 0.3441666666666667 -2.6003030303030306 0.2154166666666667 0.4787499999999999 5.653367003367003 0.14231902356902282 0.26041666666666663 -4.155180976430962 0.3258333333333334 -1.5531313131313176 12.679356060606064 -4.788333333333345 -1.8274999999999977 0.02416666666666656 -0.52625 -0.44915404040404017 1.627083333333338 0.2603535353535352 7.638173400673395 -2.3632449494949466 0.7248190235690187 0.12420454545454529 -1.5691666666666642 -0.12243265993266128 0.30875 0.16268939393939413 0.23541666666666672 -0.09999999999999987 -0.2762500000000001 0.31041666666666634 3.509301346801345 0.1741666666666666 0.19166666666666665 0.3245833333333332 0.1549999999999998 6.316035353535348 -0.36712121212121196 -0.004419191919191823 0.18958333333333327 3.7518434343434306 0.05625000000000013 4.254755892255894 0.18046717171717175 13.162015993266 -0.1512500000000001 0.1921590909090909 38.30975589225589 0.17291666666666666 0.12083333333333324 1.4689141414141342 -0.13083333333333325 0.0616666666666667 1.105690235690235 0.11333333333333334 1.2746212121212173 -0.3426136363636363 12.598400673400683 1.7561574074074129 0.05624999999999991 6.360500841750844 1.8009469696969669 3.2798821548821495 0.02083333333333337 0.05416666666666625 -0.09375000000000022 -0.12249999999999994 0.9303030303030346 1.222411616161615 7.997756734006731 -0.14208333333333345 -0.28648989898990296 0.20791666666666653 1.8677230639730689 25.263122895622896 0.3604166666666668 -0.28625 2.926489898989894 -0.15375000000000005 1.3607828282828325 0.16791666666666683 7.457744107744108 -0.17708333333333337 14.112836700336704 0.006249999999999867 -28.190446127946124 0.8856439393939349 0.2937500000000002 5.2461616161616185 12.146944444444447 0.10977272727272724 0.2883333333333332 0.3409848484848485 -0.22000000000000008 -0.4603409090909091 -7.5058712121212015 -0.13416666666666655 0.10624999999999973 1.0695833333333336 24.990479797979795 0.5334090909090907 1.8726515151515106 1.1608333333333334 2.0300547138047134 0.12916666666666676 -0.2183333333333335 -0.01666666666666683 0.577083333333329 -0.7523106060606131 3.545820707070703 0.33791666666666687 1.3097474747474742 0.011666666666666492 0.09166666666666667 1.6604166666666718 0.3962121212121186 -0.0954166666666667 3.3461279461279387 -0.27178030303030587 0.3230303030303029 3.1495959595959655 0.11250000000000004 -0.27749999999999997 6.213383838383834 11.979537037037042 2.2666035353535383 0.927798821548834 2.242083333333333 0.07083333333333319 0.3654166666666715 1.3713636363636357 19.17018097643098 3.3560395622895633 -0.20666666666666667 0.1949999999999999 0.988257575757576 0.2437499999999999 0.2391666666666667 -0.15301767676767652 -5.214414983164979 3.597853535353531 0.5842803030302981 -0.1479166666666667 0.59450757575758 -0.05208333333333326 1.283080808080813 -0.034583333333333466 0.6193602693602716 0.04375000000000018 -0.09791666666666665 -0.053333333333333344 0.016666666666666607 -0.34458333333333324 -0.08208333333333351 3.817731481481478 -0.010189393939393776 0.16874999999999996 0.2945833333333333 9.642285353535348 1.4520664983164977 0.1275 0.9195496632996584 0.3636363636363633 -0.5923232323232255 1.334448653198653 1.9314898989898994 0.46643939393938927 1.6585227272727323 3.3142340067340132 -0.2004166666666667 -0.1449999999999999 0.41185606060606095 -0.040416666666666656 0.02651515151515116 0.048257575757576 4.524305555555557 -0.022499999999999964 -0.23958333333333337 0.7630345117845168 -0.9645833333333331 8.9875 -0.09083333333333321 4.672159090909089 -0.8325547138047136 0.3258333333333333 -0.1379166666666667 -0.04458333333333331 -10.198055555555547 -0.16708333333333336 0.33861111111111103 0.1854166666666665 2.040959595959595 0.16375000000000012 -0.019583333333333397 9.502356902356897 -0.1333333333333333 3.0570833333333334 0.24454545454545007 8.633800505050509 -0.3270833333333334 0.3383333333333333 0.1479166666666667 -0.04458333333333331 2.2996085858585853 -0.025000000000000355 -0.4016666666666666 0.006553030303027896 1.5951010101010095 5.008585858585862 1.2902398989899009 0.15166666666666673 1.3573442760942807 9.319583333333334 1.2275378787878835 1.616338383838379 5.742222222222231 2.568017676767679 -0.04327020202019849 -0.2037500000000001 -0.35124999999999995 0.10749999999999993 1.0962289562289613 0.07625000000000004 -15.269739057239057 2.2817045454545406 -0.04166666666666674 24.289785353535354 1.7224747474747482 1.0654166666666733 -0.10541666666666671 2.2898484848484846 3.451262626262622 1.4362752525252593 0.06249999999999989 0.27375000000000005 0.7207954545454525 3.152929292929287 -0.07499999999999996 0.2704166666666666 -0.2283333333333334 0.36249999999999993 -0.5799873737373737 3.4446759259259325 -0.6590909090909092 -0.0469065656565657 0.6083333333333383 -4.1202861952861864 5.68634259259259 27.42609427609428 1.3033333333333332 0.024431818181818277 -0.1054166666666666 -0.039583333333333415 -0.016856060606060597 -0.031249999999999778 6.5625 0.9716582491582443 -0.26375000000000015 0.22458333333333347 0.8917676767676747 -0.018333333333333535 -1.8287499999999977 0.6744318181818183 -2.0872264309764317 1.7009469696969703 -0.15500000000000003 -0.1725000000000002 1.0385858585858634 -1.331616161616161 -0.3196969696969697 -0.06041666666666656 0.28583333333333333 0.5614015151515155 3.327095959595961 -0.45279882154882145 -1.8029166666666643 4.218329124579123 0.018749999999999822 5.151944444444448 0.5814057239057264 -0.3437499999999999 0.062499999999999556 2.1770833333333335 0.016666666666666607 -1.0835984848484823 0.17708333333333326 -0.013409090909091037 1.5840530303030294 0.8654040404040431 0.5894191919191938 0.02499999999999991 0.14340909090909038 -1.2151010101010074 0.3633333333333333 0.8635774410774433 0.41094696969697014 0.5307449494949497 0.18249999999999988 2.3079166666666664 0.26510101010101506 5.588320707070702 0.08666666666666678 0.37424242424242427 -0.05994949494949786 -1.952499999999998 -2.5317499999999993 0.3395833333333333 0.013749999999999984 0.07643939393939408 0.06666666666666732 -0.07916666666666683 4.403867845117847 0.4095496632996586 3.6347222222222193 0.28784090909090937 0.9233333333333356 -0.5636363636363662 1.8944823232323222 2.738573232323228 0.05624999999999991 1.915000000000005 0.2101262626262579 -0.1941666666666667 0.23083333333333333 15.43604797979798 -0.4415530303030304 3.510606060606063 0.7438636363636315 -2.868733164983161 -0.001123737373737388 -0.14250000000000007 0.9639183501683548 1.13953282828283 0.13500000000000023 0.07943181818181833 -13.16349326599326 -0.2037500000000001 0.009166666666666712 -0.007500000000000062 +scenario heads-up calling station +deals 1000 +seed 1592590337 +counts 8000 7 0 +samples -0.16583333333333328 7.349726430976429 -0.11094696969697226 4.463855218855219 5.669457070707073 1.7012626262626247 0.1299999999999999 6.355366161616169 13.735648148148151 0.9525378787878839 0.7733459595959598 13.105088383838387 -3.3114898989899024 1.6468181818181866 -0.173863636363641 -0.20916666666666672 4.269848484848485 1.1058333333333334 0.22791666666666666 -0.3175 1.600378787878793 0.2029166666666668 -6.838905723905723 14.848825757575757 0.26958333333333323 0.30916666666666676 4.137058080808075 0.3225000000000001 -0.26083333333333325 0.762222222222227 2.4604082491582524 1.133787878787884 17.092058080808084 6.40951178451178 2.2083207070707065 0.2958333333333335 16.633501683501684 0.08579966329966804 -0.43996212121212075 -0.01041666666666674 -0.020707070707068453 -0.031022727272729367 2.509364478114482 0.1072727272727273 -1.1210227272727202 0.1700000000000001 -0.03750000000000009 18.197365319865327 2.4651641414141405 23.74121212121212 0.06858585858585842 0.7958333333333333 0.5493434343434358 0.3537499999999998 0.14708333333333323 2.144886363636366 1.9788720538720532 -0.2749999999999999 4.768030303030303 1.958333333333338 -0.03541666666666643 0.8241666666666619 11.25135942760943 0.12458333333333327 3.1293181818181823 -0.35583333333333345 -1.8824999999999976 0.20166666666666666 -0.26916666666666655 0.06354797979797744 0.4023021885521907 0.015833333333333588 4.07010101010101 1.817500000000005 24.892592592592592 -0.4433333333333308 -0.012499999999999956 24.881544612794613 1.0591666666666715 -0.40000000000000013 10.223333333333333 24.867866161616163 25.307794612794613 -0.4536026936026887 1.2024621212121258 -0.2926515151515152 8.274158249158242 2.4709343434343425 -0.7853030303030328 0.6958712121212167 -0.004166666666666652 1.0358080808080854 11.695370370370377 -0.1499999999999999 -1.9174999999999978 -0.0901515151515152 0.24208333333333332 3.765256734006731 0.5029166666666666 -0.28636363636363904 -0.404276094276097 -1.2746212121212144 -1.8079166666666644 6.418964646464643 -1.300833333333331 0.19833333333333336 2.5116666666666667 -1.7216666666666645 4.7091666666666665 -0.13041666666666663 17.49038299663299 1.1142845117845122 -0.08625000000000005 0.07250000000000006 7.571388888888894 2.8944823232323227 5.053017676767678 13.911994949494954 0.3204166666666665 7.382828282828288 7.396666666666671 0.00016835016835159422 0.10291666666666666 0.5130765993266015 -0.2836363636363657 24.7006734006734 0.08750000000000002 0.25249999999999995 13.92638888888889 5.592121212121215 -1.0826893939393918 -4.432659932659922 -0.5546969696969725 0.6013636363636314 4.773244949494951 0.8050378787878834 12.449221380471384 1.8575000000000048 2.119002525252524 -0.008333333333333526 -1.6812499999999977 8.723968855218855 0.00416666666666643 1.8559469696969746 11.674957912457918 1.2256439393939436 10.34537037037038 -0.08291666666666675 0.9085479797979849 -1.859583333333331 2.2272222222222213 5.9458585858585895 8.325000000000003 0.9252272727272681 0.3187500000000002 24.90718855218855 -1.8070833333333307 0.2466666666666668 0.04025252525252776 17.456313131313124 -0.3179166666666666 2.0002946127946197 13.362651515151525 -9.1257702020202 -0.04249999999999998 -0.029166666666674335 0.28125 -0.027083333333333126 -1.3712499999999974 -0.18499999999999994 2.1481944444444436 0.22499999999999987 -1.8829166666666644 1.9615530303030255 -0.09708333333333341 13.710963804713808 24.799978956228955 0.5133333333333381 0.2679166666666665 -5.955046296296293 8.521073232323236 0.054166666666666696 0.28499999999999986 0.3037500000000001 0.8962499999999998 7.541123737373737 5.528472222222224 -0.04791666666666661 0.40200757575757096 -0.289343434343432 0.06666666666667354 0.30458333333333354 3.519061447811444 12.065909090909095 -1.7399999999999975 0.16249999999999998 0.19041666666666668 5.831860269360265 -0.013749999999999873 25.19170454545455 4.8062121212121145 -1.6645833333333309 3.830639730639735 3.020934343434347 1.1833333333333333 0.35483164983164517 -0.09999999999999998 -1.5104166666666643 -1.9771675084175042 0.3770833333333333 0.6327020202020246 -1.9449999999999976 0.18125000000000002 -0.0854166666666667 0.19208333333333333 10.243265993265988 0.3058333333333334 14.290399831649836 1.8229166666666714 4.910374579124577 6.332327441077437 0.5923863636363638 1.6462500000000047 6.707765151515147 4.6152904040404055 -0.02083333333333326 18.84920875420876 -0.01041666666666674 0.25833333333333314 2.356481481481475 25.175294612794612 9.665883838383838 -1.3967171717171625 0.3404166666666668 -1.0010984848484779 0.047916666666659724 -1.9291666666666643 -4.6964983164983085 -1.7464141414141494 10.987436868686874 -1.588005050505048 14.593518518518522 0.08886363636363626 -0.033749999999999836 3.4830050505050467 24.351599326599327 -0.09166666666666656 9.995475589225585 0.06291666666666651 14.29399410774411 0.5056060606060557 0.08416666666666683 -0.43140151515151515 -0.02708333333333357 -0.0958333333333331 1.5953282828282878 8.974810606060602 -0.08666666666666645 0.2579166666666669 -0.04166666666666674 3.383922558922555 -1.7041666666666642 -0.0904166666666667 1.5270833333333382 0.7690193602693556 3.4582070707070667 1.1295833333333334 -0.2945833333333332 0.19833333333333325 0.1862499999999998 0.033333333333333215 -1.5552651515151537 3.6099494949494986 0.5893939393939349 6.301999158249165 0.945294612794612 6.131561447811451 0.7905303030302981 -0.18791666666666673 0.6735900673400625 5.281797138047138 1.4795833333333381 -0.32291666666666663 0.8264015151515107 14.59869528619529 13.492041245791249 0.04166666666666674 1.7602314814814806 -3.157474747474751 -0.9072474747474679 18.34958333333332 1.6704166666666715 -0.11124999999999996 14.832962962962966 5.25703282828283 6.521380471380468 -3.1791035353535384 0.050416666666666776 -0.16178030303030766 0.2183333333333335 3.0969444444444405 5.618733164983168 11.860858585858585 -0.14375000000000004 1.9280850168350163 5.988893097643101 10.002672558922555 0.12416666666666676 0.013749999999999929 0.1562500000000001 1.8716666666666715 1.7541666666666715 0.6031818181818135 -0.10429292929293199 2.8621969696969716 0.8251515151515105 -0.6441666666666594 -2.0012499999999975 3.8419444444444406 -2.3925210437710347 -0.1954166666666668 7.029545454545455 12.74042508417509 -0.027083333333333126 0.7145833333333353 1.98890151515152 4.04346380471381 0.22749999999999987 3.114065656565655 9.86858585858586 0.1362500000000002 0.05624999999999991 11.979844276094282 0.7625000000000022 0.23291666666666677 -1.8537499999999976 13.680387205387209 10.133577441077435 0.4216666666666666 1.317765151515156 0.6164772727272683 2.745164141414138 0.05050505050505105 -0.12416666666666654 0.6943434343434389 1.4992929292929231 0.10333333333333328 0.41246212121211867 3.0243644781144834 0.1999999999999999 6.355214646464643 -0.7979166666666688 -0.08500000000000008 3.555088383838389 -1.8785774410774452 3.7221590909090945 1.8008838383838375 0.9015782828282846 4.845265151515152 12.810563973063976 0.8040909090909136 13.222020202020206 7.028829966329962 2.7475 0.18249999999999994 0.25791666666666657 0.3141666666666666 12.643960437710442 0.10291666666666682 8.513110269360268 -2.2351641414141383 -0.22250000000000003 0.60405303030303 -0.12083333333333357 -0.0720833333333335 0.2158333333333331 24.865172558922556 8.410151515151515 0.15208333333333346 11.594991582491588 0.13874999999999976 1.8566666666666716 6.788594276094272 1.3409259259259223 0.00003787878787875343 -0.15333333333333332 2.182878787878788 -0.25625 24.901565656565655 8.930202020202016 -0.35518939393939386 9.488371212121212 0.025833333333333375 4.428472222222222 6.167394781144777 -1.8929166666666641 17.37493686868687 -0.17375000000000007 7.248535353535351 0.22617424242424244 0.3025 0.51880050505051 8.396548821548825 0.10249999999999998 10.367037037037033 2.116919191919191 6.479398148148154 14.076136363636367 3.9316414141414104 0.25458333333333333 5.1832702020202035 21.70813973063973 0.21458333333333335 -0.2058333333333333 5.9372095959595965 0.4137500000000001 1.5937500000000049 0.20666666666666678 1.9595833333333381 0.1629166666666667 0.12708333333333321 -0.44431818181818183 1.779936868686868 2.581755050505048 2.482398989898991 12.180959595959607 0.6726136363636315 0.5820580808080855 2.7762626262626227 0.7282954545454591 1.7416666666666714 0.12083333333333357 0.10579545454545458 -0.09757575757575743 -4.565046296296292 -1.6083333333333307 18.579924242424248 0.7971212121212123 3.876388888888893 4.282297979797979 12.593707912457916 0.31875 -0.1712499999999999 1.1758585858585908 18.070244107744113 -0.8106818181818249 4.45136784511784 3.6175126262626227 0.046666666666666634 0.029166666666666563 3.2553282828282866 0.02295454545454545 -0.6068055555555478 5.381805555555557 -0.061868686868689515 -0.2579166666666669 -4.6795033670033686 0.12416666666666665 0.02499999999999991 6.795496632996628 -0.3554166666666668 0.24500000000000016 25.209065656565656 0.03708333333333341 0.5626136363636363 2.5675505050505016 0.14124999999999988 0.03958333333333308 1.8300000000000047 6.38042508417508 4.625176767676772 0 0.08125000000000004 1.328030303030308 -1.9854166666666644 7.626527777777779 0.11291666666666678 0.2675000000000001 -0.2466666666666667 1.7541666666666718 -0.2706313131313157 6.078952020202021 0.20958333333333345 7.107878787878786 0.08333333333333326 3.569217171717168 -2.659848484848493 1.7010058922558913 13.280744949494954 6.310441919191919 11.317647306397319 0.30999999999999983 4.662962962962959 0.3720833333333333 4.2882575757575765 0.4480765993265947 0.21708333333333346 -0.30625000000000024 -0.3191666666666667 15.058480639730638 -1.2416666666666598 0.0004166666666667873 1.8650000000000049 5.451329966329972 1.5940277777777705 9.919356060606061 1.2143518518518563 -0.05208333333333337 -0.10250000000000015 -0.19541666666666668 1.0358333333333378 0.07356060606060599 1.1664015151515201 -1.8279166666666642 2.642297979797982 2.2567297979797973 25.060732323232322 0.6838636363636315 -0.12041666666666662 0.3213257575757578 1.1696969696969663 -0.2549999999999998 0.5508333333333381 7.788333333333333 0.2581944444444444 -0.2645833333333334 0.25833333333333325 -0.2170833333333333 0.28041666666666665 0.47253787878787445 0.5623106060606016 0.060883838383838595 -0.06875000000000009 1.010340909090914 6.619381313131308 2.7483333333333335 0.05624999999999991 0.7825252525252491 0.7545833333333332 1.384027777777776 7.722083333333334 -0.1941666666666667 -1.6610984848484873 -0.15375000000000016 -0.060416666666666785 0.5766666666666715 5.536654040404042 3.8888678451178387 0.0854924242424242 6.242340067340063 0.07499999999999307 1.1029166666666665 5.198758417508419 3.3533712121212145 -0.0333333333333401 1.0592045454545505 -0.2675757575757577 0.12875000000000014 -1.6063636363636387 5.933173400673403 13.005744949494954 0.08124999999999982 -1.8024999999999975 0.7352272727272682 5.47993686868687 -0.01666666666666683 1.1068560606060558 -0.1754166666666669 5.603977272727276 0.17583333333333323 -0.3158333333333333 -0.17496212121212118 0.2270833333333332 1.825197811447816 0.18753787878787886 0.27916666666666656 3.451136363636367 0.32333333333333325 4.05875 2.21415404040404 1.9960732323232286 14.50156144781145 0.1970833333333334 9.714583333333332 4.019006734006739 -0.1545833333333334 0.8026052188552186 0.4768560606060561 -1.6364015151515177 -1.6023484848484826 0.24208333333333332 5.85763888888889 6.731919191919188 1.903324915824915 0.2883333333333335 0.8546843434343483 -0.02083333333333315 -1.9187415824915846 0.46680555555555703 2.870833333333331 -0.15833333333333344 5.174347643097645 1.1426136363636412 1.4750505050505112 0.7747727272727227 -1.699166666666664 1.8638888888888874 6.057815656565659 0.13124999999999987 -1.8029166666666643 0.6145454545454594 13.69534932659933 0.0687500000000002 8.27209595959596 2.7736742424242373 0.5391666666666715 -1.7966666666666644 9.598560606060607 0.8877946127946177 0.32833333333333325 0.18541666666666667 0.16874999999999984 0.3508333333333288 -0.1070833333333332 9.998337542087537 0.6421212121212168 0.04166666666666674 -3.2278914141414172 -0.17304292929293208 1.6979166666666714 5.5216919191919205 0.060833333333333184 1.6072474747474792 12.53710016835017 13.924137205387208 2.204734848484848 -4.3648695286195185 5.5623400673400685 3.8084175084175023 13.677483164983167 14.746502525252529 0.5166287878787929 16.31081649831649 -0.21750000000000003 2.8463762626262668 0.2283333333333334 0.810681818181818 -3.9973569023568913 0.5320833333333334 -1.6541666666666641 0.8387499999999999 0.08875000000000005 24.896127946127944 0.31416666666666665 6.633560606060606 -1.3423484848484826 4.807992424242425 0.554065656565659 -0.07999999999999996 0.14499999999999996 2.782929292929293 1.4788005050505073 0.18375000000000002 -0.10030303030303056 0.2154166666666667 0.4787499999999999 6.153367003367003 -0.04791666666666572 0.26041666666666663 4.789238215488221 0.3258333333333334 6.587605218855214 13.588446969696975 2.7460101010101026 -1.8274999999999977 0.02416666666666656 -0.52625 0.5508459595959598 1.627083333333338 1.9691077441077436 7.638173400673395 2.1317045454545505 0.7248190235690187 4.840113636363636 -1.5691666666666642 1.0058501683501642 0.30875 24.913699494949494 0.23541666666666672 -0.09999999999999987 5.890416666666665 0.31041666666666634 6.082028619528615 0.1741666666666666 0.19166666666666665 0.3245833333333332 0.1549999999999998 8.38085016835016 -0.36712121212121196 -0.004419191919191823 0.18958333333333327 3.8306313131313092 0.05625000000000013 4.254755892255894 2.1804671717171717 13.769591750841755 -0.1512500000000001 14.743674242424246 19.66059764309765 0.17291666666666666 1.1208333333333331 1.4689141414141342 -0.13083333333333325 0.0616666666666667 1.105690235690235 19.27999999999999 1.1537878787878837 0.04375000000000007 12.619107744107755 19.300601851851855 0.05624999999999991 6.360500841750844 22.08125 4.052609427609422 0.02083333333333337 0.05416666666666625 -0.07018097643097043 2.3775000000000004 3.1525252525252556 2.320896464646464 8.17654461279461 -1.1420833333333262 -0.28648989898990296 0.20791666666666653 1.8677230639730689 24.597466329966334 0.3604166666666668 -0.28625 9.407971380471375 3.012916666666664 14.347988215488218 0.16791666666666683 24.98299663299663 -0.17708333333333337 14.181018518518522 0.006249999999999867 -0.029166666666652574 0.8856439393939349 1.1270833333333288 5.700707070707073 13.673282828282831 10.117853535353536 0.2883333333333332 25.18475589225589 -0.22000000000000008 0.35784090909090904 11.43975168350169 -0.13416666666666655 0.10624999999999973 0.06958333333333355 25.45123737373737 1.4046212121212172 1.8726515151515106 1.1608333333333334 2.0300547138047134 0.12916666666666676 -0.2183333333333335 -0.01666666666666683 0.577083333333329 -0.7523106060606131 2.5241035353535337 0.33791666666666687 1.3097474747474742 0.011666666666666492 1.7583333333333382 1.6604166666666718 2.2901515151515177 2.9045833333333335 4.255218855218848 -0.27178030303030587 1.8836363636363587 5.529393939393943 0.11250000000000004 -0.27749999999999997 6.332070707070702 12.901759259259261 2.607512626262629 13.430155723905727 0.4254166666666668 5.62638888888889 0.3654166666666715 1.751666666666666 19.18028198653199 15.02270622895622 -0.20666666666666667 0.1949999999999999 0.17007575757575766 0.2437499999999999 0.2391666666666667 -0.15301767676767652 -5.214414983164979 3.6887626262626223 1.6953914141414126 -0.1479166666666667 1.4581439393939437 -0.05208333333333326 14.435437710437714 -0.034583333333333466 5.059595959595958 0.04375000000000018 -0.09791666666666665 0.6133333333333381 0.016666666666666607 1.8776388888888882 -0.08208333333333351 3.817731481481478 -0.010189393939393776 0.16874999999999996 1.2945833333333332 9.320568181818176 2.179339225589225 0.1275 -0.747117003367006 10.142045454545453 -0.5923232323232255 1.334448653198653 6.189065656565659 0.6664393939393893 1.9539772727272777 6.049587542087545 -0.2004166666666667 -0.1449999999999999 5.437108585858588 -0.040416666666666656 17.412878787878785 24.88470538720539 5.524305555555557 -0.022499999999999964 9.760416666666668 0.7630345117845168 7.535416666666667 9.9875 -0.09083333333333321 4.672159090909089 -0.8325547138047136 0.3258333333333333 -0.1379166666666667 -0.04458333333333331 -1.013207070707061 -0.16708333333333336 17.653425925925927 0.1854166666666665 2.063686868686868 0.16375000000000012 -0.019583333333333397 9.502356902356897 -0.1333333333333333 4.057083333333333 4.411212121212121 14.586931818181823 -0.3270833333333334 0.26333333333333336 3.373484848484851 -0.04458333333333331 2.500366161616161 -0.025000000000000355 -0.4016666666666666 0.006553030303027896 1.9254040404040398 4.033754208754212 2.883674242424243 0.15166666666666673 14.416266835016838 9.819583333333334 1.2275378787878835 1.616338383838379 14.8162962962963 -5.881056397306393 4.280904882154887 -0.2037500000000001 -0.35124999999999995 0.10749999999999993 13.328383838383843 0.07625000000000004 0.9802609427609568 0.19837121212121211 -0.04166666666666674 24.297361111111112 1.7224747474747482 1.0654166666666733 -0.10541666666666671 -0.17984848484848737 3.451262626262622 1.4362752525252593 0.06249999999999989 -0.22624999999999995 2.27635101010101 2.9014141414141448 -0.07499999999999996 0.2704166666666666 -0.2283333333333334 0.24166666666666636 13.190530303030306 4.406292087542094 12.950336700336702 7.634911616161616 5.497222222222224 -2.7061447811447747 5.68634259259259 9.107407407407415 0.05333333333333329 0.024431818181818277 -0.1054166666666666 -0.039583333333333415 0.3104166666666667 5.221275252525254 7.5625 1.0282239057239009 1.9584722222222215 0.22458333333333347 10.240252525252524 1.9816666666666665 -1.8287499999999977 0.08049242424242653 3.939036195286195 9.610037878787878 -0.15500000000000003 0.4941666666666712 1.0385858585858634 0.8956565656565663 0.35471380471380476 -0.06041666666666656 0.28583333333333333 5.128320707070709 3.327095959595961 -0.45279882154882145 -1.8029166666666643 6.233480639730635 0.018749999999999822 7.861035353535353 0.5814057239057264 0.1562500000000001 -1.3853114478114366 -1.9895833333333308 13.040235690235699 -1.5154166666666642 0.17708333333333326 -0.013409090909091037 1.5840530303030294 4.428114478114477 0.5894191919191938 0.02499999999999991 25.29171717171717 -0.32217171717170967 0.2466666666666666 6.941691919191914 -1.5840025252525145 17.42047558922559 0.18249999999999988 -1.8587499999999975 0.2802525252525302 6.576704545454541 0.08666666666666678 5.966750841750845 0.624393939393941 -1.452499999999998 1.645833333333338 0.3395833333333333 0.013749999999999984 25.06911616161616 17.741750841750832 -0.07916666666666683 4.470029461279463 0.4095496632996586 5.434722222222218 25.124288720538722 2.3122222222222213 -0.5636363636363662 2.0245328282828274 3.5113005050505004 0.05624999999999991 1.915000000000005 0.5040656565656518 -0.1941666666666667 0.23083333333333333 15.852714646464646 -0.015416666666666745 4.328787878787881 0.7438636363636315 -0.09095538720538232 2.4988762626262626 -0.14250000000000007 1.083110269360274 4.250643939393938 0.13500000000000023 0.1362500000000002 -0.8724158249158223 -0.2037500000000001 1.6758333333333382 -0.007500000000000062 +scenario 6-max reg +deals 150 +seed 1592590337 +counts 1344 13 0 +samples -0.4166666666666667 0.11768518518518518 0.25 0.16833333333333333 0.17703703703703622 0.09388888888888887 0.49702139639639653 0.022129629629630387 0.21544169169169103 0 0 0.25 2.401388888888891 0.17993055555555562 5.961437131576024 0 -4.607032588143698 -1.6304799938827739 0 0.11268518518518518 0.09640265265265176 -11.739855897564231 0.5742279779779762 0 0.09663225725725733 1.6128928233789335 0.20390001112223163 1.7393823684795906 -3.469948490156824 -0.4166666666666667 0.5013888888888891 0.13444444444444445 -0.31205434601268023 -0.0055555555555556095 -0.26834834834834836 0.013433433433432581 -1.3727389889889896 0 -10.278589422756088 0.4417867867867867 0 0 -0.8456481481481473 0 0.13113863863863867 -0.25475792922551693 -0.2694969969969978 0.25 0.47002314814814805 0.22166666666666668 0 -0.20232232232232306 0 -0.05173611111111113 -2.6604911161161167 0.040388722055389494 0.1775 -0.5776388888888899 0 2.558688063063062 -0.11802218885552136 0.5626451451451452 -0.11351288788788942 0 0 0.3647222222222222 -0.08802802802802805 0 -0.06666666666666672 -0.6106322989656331 -0.4857715354243127 0.6696659159159175 -0.011476059392726853 -0.25 10.638078078078081 -0.20608796296296297 -0.2981681681681681 -0.3521141975308633 0 0.02006944444444292 12.345643351685018 5.918295610425242 0.5688513513513508 0.5527777777777777 0 -0.008888888888888872 0.11416666666666668 0.07633883883883878 0 0 12.435764097430765 0.37041666666666667 13.369399260371482 0.08456706706706707 -0.27337608441775196 0 0 -1.2321735624513404 -0.4262556306306314 3.1406110276943626 -0.02402777777777776 0 -0.07388888888888896 0.25 -0.25 0.3663963963963964 0.1580555555555556 0.17224724724724727 0.394375 -0.35434914080747487 -1.601156156156156 0.036704204204204206 0.15026276276276276 0.25 0.011111111111111072 0.3938238238238238 -0.09638888888888886 0 0 -2.221064814814815 -0.04248623623623623 -1.0050925925925933 -1.1278623067511964 0 0 -5.694910883105327 1.6178703703703672 0.08222472472472471 -8.060321432543653 0.7596196196196204 0 -7.817700825825827 0.09333333333333334 0.11888888888888889 -0.019004004004004038 1.0395630352574787 0.05003753753753674 0 0 -0.10474537037037124 0.033393393393394165 -0.014375000000000767 -0.18333333333333335 6.3778050272494715 0.15405405405405403 0.18299549549549554 0 4.5130401234567925 0.025455455455455467 -0.08381944444444445 +scenario 6-max nit +deals 150 +seed 1592590337 +counts 982 5 0 +samples 8.006388263263263 0.11768518518518518 0.25 0.25 0.5 0.25 0.75 0.10472222222222222 0.023819444444444466 0 0.25 0.25 0.6729938271604947 0.25 0.25 0 0.5 -0.6011033950617302 0 0.25 0.34952765265265257 -17.20274461961962 0.2745720720720721 0 0.25 0.5618000639528412 2.0805727950172406 0.5355862112112112 0.5 -0.9194867784451111 1.0836154904904898 0.25 0.006527777777777762 0.25 0.5 0.25 0 0 0.6252627627627628 0.38000000000000006 0 0 0.37138888888888894 0 0.5 11.230016891891893 0.4372222222222222 0.25 0.5 0.3475 0.25 0.9892592592592592 0 0.25 31.16741084834835 0.11254754754754755 0.5 0.25 0 -0.31599849849849854 -0.002777777777777768 0.75 0.25 0.25 0 0.5 0.25 0 0 0.5 0.1800694444444444 0.5 0.2577577577577577 0.25 -2.5296133633633633 -0.4607175925925926 0.35888888888888887 0.11361111111111111 0 0.25 12.397909159159163 1.6540477977977945 0.5637731481481466 0.5 0 0 0.25 0.75 0.25 0 0.6150975975975976 0.75 10.414493660326993 0.25 -0.014305555555555646 0 0 -0.02777777777777783 0.5 0.29383445945945946 0.25 0.25 0.25 0.25 0 0.5 0.25 0.5 0.5 0.48187500000000005 -9.40436936936937 0.25 0.5 0.25 0.25 0.5 0.5 0 0.25 0.40913726226226294 -0.2820695695695696 0.3622222222222222 0.25 0 0 0.75 0.5 0.25 -12.318781281281282 0.6105555555555555 0 0.8348148148148148 0.25 0.25 0.19646146146146148 -0.09000000000000001 0 0 0.35268518518518516 0.6461111111111112 0.04948948948948952 -0.06715277777777777 0.6871121121121121 11.10313104771438 0.5 0.5 -0.11300300300300299 3.742354854854858 0.25 0.5 +scenario 6-max maniac +deals 150 +seed 1592590337 +counts 1225 8 0 +samples -2.8047297297297296 -4.601079204204205 9.064946196196196 -0.22556681681681678 -0.9899474474474474 -0.34274399399399397 -0.4740277777777777 0.15249999999999972 0.11334834834834744 -0.13275150150150158 -0.25 -0.7974849849849851 -0.25 -0.5335585585585586 -0.3333333333333333 0.2416666666666667 -0.15503628628628627 -1.1204360610610615 -0.10730480480480481 -0.4166666666666667 -2.981436749249246 20.04692192192192 7.161106731731734 -0.10983483483483479 -0.25 -4.939597097097097 -0.7926201201201201 -0.7790465465465465 -0.8986674174174171 -1.469512012012012 -2.1596646646646644 0.4746296296296295 -0.7975694444444444 -0.5434046546546546 -1.0310347847847847 -1.549042792792793 -1.0993055555555555 -0.25 -2.3827946696696696 3.8872810310310313 -1.730908408408408 -0.25 -3.551208708708709 1.1092235985985983 -0.9600037537537539 12.388124374374378 -0.5045045045045046 -0.25 -0.25 -0.7486699199199198 2.4348160660660674 -0.5405255255255254 0.14600225225225225 -0.4092029529529529 -1.858318318318318 -1.4887387387387385 -1.065972222222222 -0.25 0.04688188188188188 -4.951933183183182 15.405000000000001 -0.25 12.330709459459461 -1.3060435435435436 0.2988551051051049 0.09281906906907074 15.153023648648649 -0.25 -3.0278228228228223 -0.7501689189189191 -2.6005067567567566 -0.5791510260260262 -19.895667125458782 -0.25 -11.878246996996998 -1.7790634384384383 -0.5910491741741738 -0.3053415915915916 -0.25 -2.4276914414414397 42.75363113113113 0.5479316816816814 -0.01918918918918866 49.40919502836175 -7.811880630630632 -0.12290540540540551 -0.5051951951951951 -0.4834647147147148 15.743055555555555 -0.18267517517517518 -0.5610710710710711 -0.2634009009009009 15.700639389389389 -1.8884534534534538 -0.40093093093093124 -0.11782907907907904 -0.25 -2.2499092147703266 -3.092311061061061 33.6646853103103 -0.5466316316316316 -1.364552052052052 -1.3268893893893892 16.38734984984985 -0.25 -0.31805555555555554 -1.0112587587587583 -0.25 -0.33470658158158156 -1.5000563063063062 -9.073472222222223 -0.25 -0.5030030030030029 -0.25 -0.3333333333333333 -0.25 -0.25 -0.25 -0.15464214214214209 -1.083614864864865 -1.6416666666666668 -1.113776901901902 0.7306045628962278 -0.29003003003003003 -0.3071978228228229 -4.234876126126127 -0.23623498498498505 -0.37053303303303303 30.566446446446434 -0.25 -0.25 -7.677796546546546 -0.6482795295295295 -1.8768518518518522 -0.25 10.412268518518522 -0.34401276276276266 -0.23229104104104106 -0.25 -2.535523023023023 50.935236486486495 -2.934553303303302 -0.28635510510510515 28.398293918918913 22.506728603603605 -0.37061936936936934 0.1808370870870871 -4.468599849849849 -0.32288288288288286 -0.08208333333333336 +scenario 6-max fish +deals 150 +seed 1592590337 +counts 1849 19 0 +samples -12.398426551551552 -0.1904542042042042 3.452987987987985 -0.2997297297297307 0.057777777777777706 -0.14722222222222228 0.17541666666666664 -0.10454204204204219 0.37444444444444436 -0.06082957957957946 -16.71093843843844 0.22996996996996996 -0.027755255255255278 -0.14666666666666675 2.138506006006006 -0.055972222222222166 0.29073198198198186 0.13969907407407414 -0.13936936936936942 -0.18333333333333335 8.758487654320986 2.8482920420420412 49.964759134134134 -0.06944444444444442 -15.795690690690696 0.17515953453453462 -0.8299624624624627 -0.2876876876876877 -1.581246246246246 0.4466591591591594 -0.17325075075075066 0.018763763763763725 -0.1802552552552552 -0.31870870870870865 0.11814814814814804 11.083442192192194 0.03199324324324319 -0.1762987987987988 -0.3915728228228228 5.040968468468468 -0.6175 -0.09555555555555562 -0.2833083083083083 0.7716378878878881 -13.20619744744745 -1.0529842342342344 0.3225 0.07222222222222234 -0.395975975975976 -2.0083333333333333 0.22125000000000006 -0.5906944444444443 -0.3659722222222224 -0.2175000000000001 -0.6338138138138132 -2.48743993993994 0.09666666666666668 -0.3646246246246246 0.19611111111111104 -0.5700900900900899 0.2023198198198198 -0.1691216216216216 0.2988888888888887 0.053978978978979 26.967438271604937 -0.22597222222222216 -0.16500000000000004 -0.05388888888888891 0.3566666666666667 -0.4787912912912915 -1.2419444444444443 -0.02277777777777786 0.10107586753420113 12.116717467467472 -0.36405843343343375 0.10652777777777783 -1.075 -0.08387012012012009 -0.10907407407407399 0.2588888888888888 28.179022772772772 -2.2736961961961963 -0.2627852852852852 2.9813713713713703 -0.8216253753753765 51.737500000000004 -0.004722222222222183 18.062638888888888 22.591944444444447 -0.04916666666666666 26.075198114781447 -3.456771771771773 -2.494675925925926 4.114144144144144 0.030818318318318383 -0.055833333333333325 -0.20356981981981984 0.32318881381381376 -0.034590840840840985 -6.084075950950951 0.008055555555555483 0.2540915915915916 0.26875 -0.10160660660660671 0.044999999999999964 -0.028611111111111105 -0.051944444444444425 0.16138888888888867 0.3454166666666671 0.02041666666666662 8.245145395395394 -0.20222222222222222 -3.8568393393393383 -0.043055555555555514 0.4544444444444444 -0.15287412412412385 -0.4946446446446446 -0.14444444444444446 0.0029804804804806073 0.1268055555555555 0.33472222222222214 0.022777777777777786 0.14499999999999993 1.5349699699699688 -0.019444444444444486 0.6001238738738736 -0.32593093093093095 -0.034722222222222175 63.336896896896896 -0.10913663663663671 0.07333333333333336 -0.6038138138138138 -0.03333333333333336 -0.18072822822822823 -0.059557057057057085 0.4404166666666658 0.4206944444444443 -0.005555555555555573 0.4479579579579575 -0.5405555555555556 63.482526276276275 -0.00902777777777771 0.02666666666666669 32.070480480480484 3.313175675675676 -0.22124999999999997 7.314045295295295 31.649082832832832 -0.1250600600600601 -0.20250375375375373 +scenario 6-max calling station +deals 150 +seed 1592590337 +counts 2064 0 0 +samples 0.7211111111111114 -0.08347222222222221 0.13222222222222224 -0.03666666666666666 0.057777777777777706 -0.05777777777777782 0.22541666666666652 0.07638888888888877 0.42777777777777776 0.49097222222222214 -0.44194444444444453 0.3380555555555554 0.005277777777777752 -0.048611111111111084 5.243611111111111 -0.019722222222222197 0.419861111111111 0.19999999999999987 -0.10333333333333339 -0.18333333333333335 0.11597222222222221 12.95236111111111 8.685833333333333 -0.06944444444444442 -0.7672222222222222 0.41458333333333347 0.34083333333333304 0.07222222222222215 0.20666666666666686 5.483055555555556 0.02194444444444447 0.09749999999999999 0.4222222222222223 -0.012777777777777796 0.4083333333333332 0.3134722222222221 0.4683333333333333 -0.15527777777777776 0.2784722222222223 8.4475 -0.061944444444444434 -0.09555555555555562 0.25361111111111106 0.8998611111111113 0.412361111111111 0.46805555555555545 0.3225 0.07222222222222234 -0.2255555555555556 0.5848611111111109 0.4281944444444446 0.1731944444444445 0.6340277777777775 0.19916666666666658 0.27972222222222215 0.03583333333333346 0.33083333333333337 0.14888888888888893 0.19611111111111104 0.5345833333333335 0.4658333333333333 -0.08361111111111108 0.2988888888888887 0.24166666666666678 0.5918055555555556 0.2740277777777778 -0.040000000000000056 -0.043055555555555514 0.3566666666666667 0.1458333333333333 0.43861111111111123 0.06194444444444436 0.26402777777777775 0.0011111111111110628 0.8029166666666668 0.18166666666666662 0.19666666666666655 0.02236111111111111 0.048333333333333416 0.2588888888888888 0.8497222222222222 0.29749999999999993 0.18805555555555575 0.3738888888888887 0.3759722222222221 -6.61388888888889 -0.004722222222222183 19.822638888888886 8.925277777777778 -0.027777777777777752 0.11999999999999993 0.2705555555555556 0.5476388888888889 5.136666666666667 0.32361111111111107 -0.055833333333333325 0.07055555555555564 0.4861111111111113 0.08402777777777763 0.22291666666666674 0.03583333333333327 0.2736111111111112 0.27638888888888885 -0.07833333333333344 0.044999999999999964 -0.028611111111111105 -0.051944444444444425 0.16138888888888867 0.3454166666666671 0.02041666666666662 9.062222222222223 -0.20222222222222222 0.22944444444444442 0.03388888888888899 0.4544444444444444 0.1036111111111111 -0.044444444444444474 -0.13055555555555556 3.447638888888889 0.1268055555555555 0.6098611111111113 0.10611111111111111 0.2320833333333335 -0.06277777777777784 -0.019444444444444486 0.684583333333333 -0.08944444444444444 -0.034722222222222175 12.717777777777778 0.40249999999999986 0.07333333333333336 -0.12333333333333334 -0.02194444444444447 0.04750000000000001 0.21194444444444452 0.6597222222222222 0.5195833333333332 -0.005555555555555573 -0.08777777777777777 -0.0301388888888889 65.62742117117118 -0.00902777777777771 0.02666666666666669 8.21462087087087 8.470833333333333 0.11208333333333331 1.0456944444444443 0.5127777777777778 -0.1205555555555556 0.05125000000000002 diff --git a/src/bin/benchmark.rs b/src/bin/benchmark.rs new file mode 100644 index 00000000..208edc60 --- /dev/null +++ b/src/bin/benchmark.rs @@ -0,0 +1,87 @@ +//! Is the engine better or worse than before? Plays the fixed scenarios of `sim::benchmark` and +//! compares them deal by deal with the saved baseline. Exit code 1 on a regression. +//! +//! ```text +//! cargo run --release --bin benchmark # compare with benchmarks/baseline.txt +//! cargo run --release --bin benchmark -- --save # the current engine becomes the baseline +//! ``` + +use pokerfreak::sim::benchmark::{parse, render, run_all, verdict_of_run, Report}; +use pokerfreak::sim::paired::{Comparison, Verdict}; +use std::process::{exit, Command}; +use std::time::Instant; +use std::{env, fs}; + +const BASELINE: &str = "benchmarks/baseline.txt"; + +fn git(args: &[&str]) -> String { + Command::new("git") + .args(args) + .output() + .map(|o| String::from_utf8_lossy(&o.stdout).trim().to_string()) + .unwrap_or_default() +} + +/// The commit, marked when the working tree differs from it. +fn version() -> String { + let dirty = if git(&["status", "--porcelain"]).is_empty() { "" } else { "+lokal" }; + format!("{}{dirty}", git(&["rev-parse", "--short", "HEAD"])) +} + +fn word(verdict: Verdict) -> &'static str { + match verdict { + Verdict::Identical => "gleich", + Verdict::Better => "BESSER", + Verdict::Worse => "SCHLECHTER", + Verdict::Unclear => "nicht unterscheidbar", + } +} + +fn line(name: &str, c: &Comparison) -> String { + format!("{name:<26} {:>+8.2} ± {:>6.2} bb/100 {:>5} geändert {}", c.delta_bb_per_100, c.ci95, c.changed_deals, word(c.verdict)) +} + +fn print_report(report: &Report) { + for (name, c) in &report.scenarios { + println!("{}", line(name, c)); + } + println!("{}", line("GESAMT", &report.overall)); + if report.invalid > 0 { + println!("{} ungültige Anfragen: Fehler im Simulator oder der Prüfung", report.invalid); + } +} + +fn main() { + let save = env::args().any(|a| a == "--save"); + let started = Instant::now(); + let run = run_all(&version()); + for s in &run.scenarios { + println!("{:<26} {:>+9.2} bb/100 {:>6} Entscheidungen {:>4} ABSTAIN", s.name, s.bb_per_100(), s.decisions, s.abstains); + } + println!("{} in {:.0} s\n", run.label, started.elapsed().as_secs_f64()); + if save { + if let Err(e) = fs::write(BASELINE, render(&run)) { + eprintln!("{BASELINE}: {e}"); + exit(2); + } + println!("Basislinie gespeichert: {BASELINE}"); + return; + } + let base = fs::read_to_string(BASELINE).map_err(|e| format!("{BASELINE}: {e}")).and_then(|t| parse(&t)); + let report = base.and_then(|b| { + println!("gegen Basislinie {}", b.label); + verdict_of_run(&b, &run) + }); + match report { + Ok(report) => { + print_report(&report); + if report.has_regression() { + exit(1); + } + } + Err(e) => { + eprintln!("{e}"); + exit(2); + } + } +} diff --git a/src/exploit/mark.rs b/src/exploit/mark.rs new file mode 100644 index 00000000..6cbea707 --- /dev/null +++ b/src/exploit/mark.rs @@ -0,0 +1,33 @@ +//! The client's own label of a player (`villains[].marke`), used until we have numbers. +//! +//! Assumption, not measured: a player the client marks as a beginner or fish plays like a passive +//! calling station. No marked player exists in the logs so far (`specialPlayerTagConfig` is off at +//! the measured tables), so these values are unchecked. Measured fields always win. + +use super::profile::Profile; + +/// What a beginner or fish is assumed to do where nothing is measured. +const WEAK_PLAYER: Profile = Profile { + vpip: Some(0.45), + pfr: Some(0.10), + fold_to_bet: Some(0.25), + aggression: Some(0.20), +}; + +fn prior(mark: &str) -> Option { + matches!(mark, "Anfaenger" | "FISH").then_some(WEAK_PLAYER) +} + +/// `measured` with its missing fields filled from the mark. Unknown marks change nothing. +pub fn with_mark(measured: Option, mark: &str) -> Option { + let Some(prior) = prior(mark) else { + return measured; + }; + let known = measured.unwrap_or_default(); + Some(Profile { + vpip: known.vpip.or(prior.vpip), + pfr: known.pfr.or(prior.pfr), + fold_to_bet: known.fold_to_bet.or(prior.fold_to_bet), + aggression: known.aggression.or(prior.aggression), + }) +} diff --git a/src/exploit/mod.rs b/src/exploit/mod.rs index b998513e..5c613619 100644 --- a/src/exploit/mod.rs +++ b/src/exploit/mod.rs @@ -9,6 +9,7 @@ pub mod call_floor; pub mod fold_chance; pub mod fold_equity_scale; pub mod made_ladder; +pub mod mark; pub mod pot_trace; pub mod preflop_role; pub mod profile; diff --git a/src/exploit/thresholds.rs b/src/exploit/thresholds.rs index e368979a..468805df 100644 --- a/src/exploit/thresholds.rs +++ b/src/exploit/thresholds.rs @@ -17,7 +17,7 @@ pub struct Thresholds { impl Thresholds { pub const BASE: Thresholds = Thresholds { call_margin: 0.02, - value_raise: 0.62, + value_raise: 0.58, abstain_band: 0.015, fold_equity_scale: 1.0, range_width_scale: 1.0, diff --git a/src/sim/benchmark.rs b/src/sim/benchmark.rs new file mode 100644 index 00000000..310f6867 --- /dev/null +++ b/src/sim/benchmark.rs @@ -0,0 +1,180 @@ +//! The benchmark: a fixed set of scenarios, run the same way for every version of the engine, so +//! that two runs can be compared deal by deal (`sim::paired`). The runs live in text files; the +//! pure parts are here, the file and clock work in `src/bin/benchmark.rs`. + +use super::opponent::Opponent; +use super::paired::{compare, Comparison, Verdict}; +use super::reader::Style; +use super::session::{deal_samples, Setup}; +use std::thread; + +const SEED: u64 = 0x5EED_0001; +const STACK_BB: f64 = 100.0; +const HEADS_UP_DEALS: u32 = 1000; +const SIX_MAX_DEALS: u32 = 150; + +pub struct Scenario { + pub name: &'static str, + pub setup: Setup, +} + +const fn scenario(name: &'static str, players: u8, opponent: Opponent) -> Scenario { + let deals = if players == 2 { HEADS_UP_DEALS } else { SIX_MAX_DEALS }; + Scenario { name, setup: Setup { players, opponent, deals, stack_bb: STACK_BB, seed: SEED } } +} + +/// Folder and random opponent are left out: the first is saturated at +75, the second's variance +/// would drown the total. `tests/sim_strength.rs` keeps watching both. +pub const SCENARIOS: [Scenario; 10] = [ + scenario("heads-up reg", 2, Opponent::Reader(Style::Reg)), + scenario("heads-up nit", 2, Opponent::Reader(Style::Nit)), + scenario("heads-up maniac", 2, Opponent::Reader(Style::Maniac)), + scenario("heads-up fish", 2, Opponent::Reader(Style::Fish)), + scenario("heads-up calling station", 2, Opponent::CallingStation), + scenario("6-max reg", 6, Opponent::Reader(Style::Reg)), + scenario("6-max nit", 6, Opponent::Reader(Style::Nit)), + scenario("6-max maniac", 6, Opponent::Reader(Style::Maniac)), + scenario("6-max fish", 6, Opponent::Reader(Style::Fish)), + scenario("6-max calling station", 6, Opponent::CallingStation), +]; + +#[derive(Clone, Debug, PartialEq)] +pub struct ScenarioRun { + pub name: String, + pub deals: u32, + pub seed: u64, + pub decisions: u32, + pub abstains: u32, + /// Requests the guard refused: a simulator bug, must stay 0. + pub invalid: u32, + /// Hero's luck-corrected result per deal, bb. + pub samples: Vec, +} + +impl ScenarioRun { + pub fn bb_per_100(&self) -> f64 { + 100.0 * self.samples.iter().sum::() / self.samples.len().max(1) as f64 + } +} + +#[derive(Clone, Debug, PartialEq)] +pub struct Run { + /// Which version this is. + pub label: String, + pub scenarios: Vec, +} + +/// Plays every scenario, one thread each. The result does not depend on the threads. +pub fn run_all(label: &str) -> Run { + let scenarios = thread::scope(|scope| { + let running: Vec<_> = SCENARIOS + .iter() + .map(|s| { + scope.spawn(move || { + let (samples, m) = deal_samples(&s.setup); + ScenarioRun { + name: s.name.to_string(), + deals: s.setup.deals, + seed: s.setup.seed, + decisions: m.decisions, + abstains: m.abstains, + invalid: m.invalid, + samples, + } + }) + }) + .collect(); + running.into_iter().map(|r| r.join().expect("a scenario panicked")).collect() + }); + Run { label: label.to_string(), scenarios } +} + +pub struct Report { + pub scenarios: Vec<(String, Comparison)>, + pub overall: Comparison, + pub invalid: u32, +} + +impl Report { + /// Worse anywhere, even if the total hides it, or a request the guard refused. + pub fn has_regression(&self) -> bool { + self.invalid > 0 + || self.overall.verdict == Verdict::Worse + || self.scenarios.iter().any(|(_, c)| c.verdict == Verdict::Worse) + } +} + +/// The mean of independent scenarios, each counting the same; their variances add. +pub fn overall(comparisons: &[Comparison]) -> Comparison { + let k = comparisons.len().max(1) as f64; + let delta = comparisons.iter().map(|c| c.delta_bb_per_100).sum::() / k; + let ci95 = comparisons.iter().map(|c| c.ci95.powi(2)).sum::().sqrt() / k; + let identical = comparisons.iter().all(|c| c.verdict == Verdict::Identical); + Comparison { + delta_bb_per_100: delta, + ci95, + changed_deals: comparisons.iter().map(|c| c.changed_deals).sum(), + verdict: if identical { Verdict::Identical } else { Verdict::of(delta, ci95) }, + } +} + +/// Compares two runs. Runs under other conditions say nothing about the engine: refused. +pub fn verdict_of_run(base: &Run, new: &Run) -> Result { + if base.scenarios.len() != new.scenarios.len() { + return Err(format!("{} gegen {} Szenarien: Basislinie neu messen", base.scenarios.len(), new.scenarios.len())); + } + let mut scenarios = Vec::with_capacity(base.scenarios.len()); + for (b, n) in base.scenarios.iter().zip(&new.scenarios) { + if b.name != n.name || b.deals != n.deals || b.seed != n.seed { + return Err(format!("andere Bedingungen: „{}“ gegen „{}“: Basislinie neu messen", b.name, n.name)); + } + scenarios.push((b.name.clone(), compare(&b.samples, &n.samples)?)); + } + let all: Vec = scenarios.iter().map(|(_, c)| *c).collect(); + Ok(Report { overall: overall(&all), invalid: new.scenarios.iter().map(|s| s.invalid).sum(), scenarios }) +} + +/// The run as text. Floats are written so that they read back bit for bit. +pub fn render(run: &Run) -> String { + let mut text = format!("label {}\n", run.label); + for s in &run.scenarios { + let samples: Vec = s.samples.iter().map(f64::to_string).collect(); + text += &format!( + "scenario {}\ndeals {}\nseed {}\ncounts {} {} {}\nsamples {}\n", + s.name, s.deals, s.seed, s.decisions, s.abstains, s.invalid, samples.join(" ") + ); + } + text +} + +fn field<'a>(lines: &mut std::str::Lines<'a>, key: &str) -> Result<&'a str, String> { + let line = lines.next().ok_or_else(|| format!("„{key}“ fehlt"))?; + line.strip_prefix(key) + .and_then(|rest| rest.strip_prefix(' ')) + .ok_or_else(|| format!("„{key}“ erwartet, „{line}“ gelesen")) +} + +fn number(text: &str) -> Result { + text.parse().map_err(|_| format!("keine Zahl: „{text}“")) +} + +pub fn parse(text: &str) -> Result { + let mut lines = text.lines(); + let label = field(&mut lines, "label")?.to_string(); + let mut scenarios = Vec::new(); + while lines.clone().next().is_some() { + let name = field(&mut lines, "scenario")?.to_string(); + let deals: u32 = number(field(&mut lines, "deals")?)?; + let seed: u64 = number(field(&mut lines, "seed")?)?; + let counts = field(&mut lines, "counts")?.split(' ').map(number).collect::, _>>()?; + let [decisions, abstains, invalid] = counts[..] else { + return Err(format!("„counts“ von „{name}“ hat {} Werte", counts.len())); + }; + let samples = field(&mut lines, "samples")?.split(' ').map(number).collect::, _>>()?; + if samples.len() != deals as usize { + return Err(format!("„{name}“: {deals} Austeilungen, {} Werte", samples.len())); + } + scenarios.push(ScenarioRun { name, deals, seed, decisions, abstains, invalid, samples }); + } + Ok(Run { label, scenarios }) +} diff --git a/src/sim/mod.rs b/src/sim/mod.rs index 289b0ce6..5b5d7e60 100644 --- a/src/sim/mod.rs +++ b/src/sim/mod.rs @@ -2,7 +2,10 @@ //! fixed opponents, win rate in bb/100 with a 95 % interval. Pure and deterministic; used by //! `tests/sim_strength.rs`, not by the request pipeline. +pub mod benchmark; pub mod luck; pub mod opponent; +pub mod paired; +pub mod reader; pub mod session; pub mod table; diff --git a/src/sim/opponent.rs b/src/sim/opponent.rs index 9707603b..b3e8086b 100644 --- a/src/sim/opponent.rs +++ b/src/sim/opponent.rs @@ -1,3 +1,4 @@ +use super::reader::Style; use crate::rng::Rng; /// What a fixed opponent sees: the price and, if raising is possible, its bounds @@ -17,7 +18,7 @@ pub enum Act { RaiseTo(f64), } -/// Fixed opponents for the strength measurement. None of them looks at its cards. +/// Fixed opponents for the strength measurement. Only `Reader` looks at its cards. #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum Opponent { /// Calls every bet, never raises. @@ -26,6 +27,8 @@ pub enum Opponent { Folder, /// Uniform among the legal options; a raise is uniform between min and max. RandomLegal, + /// Plays its cards in a fixed style; the table hands it its reading (`Style::act`). + Reader(Style), } impl Opponent { @@ -36,6 +39,7 @@ impl Opponent { Opponent::CallingStation => "calling station", Opponent::Folder => "folder", Opponent::RandomLegal => "random legal", + Opponent::Reader(style) => style.name(), } } @@ -43,6 +47,8 @@ impl Opponent { let facing = view.to_call > 0.0; let passive = if facing { Act::Call } else { Act::Check }; match self { + // Without a reading there is nothing to play on; the table never asks this way. + Opponent::Reader(_) => (if facing { Act::Fold } else { Act::Check }, rng), Opponent::CallingStation => (passive, rng), Opponent::Folder => (if facing { Act::Fold } else { Act::Check }, rng), Opponent::RandomLegal => { diff --git a/src/sim/paired.rs b/src/sim/paired.rs new file mode 100644 index 00000000..ccb6401c --- /dev/null +++ b/src/sim/paired.rs @@ -0,0 +1,57 @@ +//! Paired comparison of two measurements over the same deals: the difference per deal removes +//! what both runs share, so a small change shows long before the two win rates' intervals part. + +/// 95 % two-sided normal quantile. +const Z95: f64 = 1.959_964; + +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum Verdict { + /// Not a single result moved. + Identical, + /// The interval of the difference lies above 0. + Better, + /// The interval of the difference lies below 0. + Worse, + /// Something moved, but the interval still contains 0. + Unclear, +} + +impl Verdict { + /// Judges a difference and the half width of its interval. + pub fn of(delta: f64, ci95: f64) -> Verdict { + if delta - ci95 > 0.0 { + Verdict::Better + } else if delta + ci95 < 0.0 { + Verdict::Worse + } else { + Verdict::Unclear + } + } +} + +#[derive(Clone, Copy, Debug, PartialEq)] +pub struct Comparison { + /// New minus base, bb/100. + pub delta_bb_per_100: f64, + /// Half width of the 95 % interval of the difference, bb/100. + pub ci95: f64, + pub changed_deals: u32, + pub verdict: Verdict, +} + +/// Compares per-deal results in bb. The deals must be the same ones, in the same order. +pub fn compare(base: &[f64], new: &[f64]) -> Result { + if base.len() != new.len() || base.is_empty() { + return Err(format!("{} gegen {} Austeilungen", base.len(), new.len())); + } + let diffs: Vec = base.iter().zip(new).map(|(b, n)| n - b).collect(); + let changed_deals = diffs.iter().filter(|d| **d != 0.0).count() as u32; + if changed_deals == 0 { + return Ok(Comparison { delta_bb_per_100: 0.0, ci95: 0.0, changed_deals, verdict: Verdict::Identical }); + } + let n = diffs.len() as f64; + let mean = diffs.iter().sum::() / n; + let var = diffs.iter().map(|d| (d - mean).powi(2)).sum::() / (n - 1.0).max(1.0); + let (delta, ci95) = (100.0 * mean, 100.0 * Z95 * (var / n).sqrt()); + Ok(Comparison { delta_bb_per_100: delta, ci95, changed_deals, verdict: Verdict::of(delta, ci95) }) +} diff --git a/src/sim/reader.rs b/src/sim/reader.rs new file mode 100644 index 00000000..52d78746 --- /dev/null +++ b/src/sim/reader.rs @@ -0,0 +1,121 @@ +//! Opponents that look at their cards: fixed rules on equity against a random hand. Not a model +//! of real players, but they punish what card-blind opponents cannot, such as paying off strong +//! hands or bluffing into a caller. + +use super::opponent::{Act, View}; +use crate::card::{deck, Card}; +use crate::hand::showdown::best; +use crate::rng::Rng; +use crate::variant::HoleUsage; + +/// Boards drawn per strength estimate. +const STRENGTH_SAMPLES: usize = 200; +/// Up to this price (bb) a preflop raise is an open, above it a re-raise. +const OPEN_PRICE: f64 = 1.0; +/// Only hands below this strength bluff. +const BLUFF_BELOW: f64 = 0.45; + +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum Style { + Reg, + Nit, + Maniac, + Fish, +} + +/// What the table tells a reading opponent besides the `View`. +#[derive(Clone, Copy, Debug, PartialEq)] +pub struct Reading { + /// Equity against one random hand, 0 to 1. + pub strength: f64, + pub pot: f64, + /// Already in front of it on this street. + pub own_bet: f64, + pub preflop: bool, +} + +struct Rules { + /// Equity it wants above the pot odds to call. + call_margin: f64, + /// Raises a bet from here. + raise_at: f64, + /// Bets when checked to from here. + bet_at: f64, + /// Opens preflop from here. + open_at: f64, + /// How often it bluffs a weak hand when checked to. + bluff: f64, + /// Bet size as a share of the pot after calling. + size: f64, +} + +impl Style { + pub const ALL: [Style; 4] = [Style::Reg, Style::Nit, Style::Maniac, Style::Fish]; + + pub fn name(self) -> &'static str { + match self { + Style::Reg => "reg", + Style::Nit => "nit", + Style::Maniac => "maniac", + Style::Fish => "fish", + } + } + + fn rules(self) -> Rules { + match self { + Style::Reg => Rules { call_margin: 0.22, raise_at: 0.82, bet_at: 0.68, open_at: 0.62, bluff: 0.08, size: 2.0 / 3.0 }, + Style::Nit => Rules { call_margin: 0.32, raise_at: 0.90, bet_at: 0.78, open_at: 0.70, bluff: 0.0, size: 0.5 }, + Style::Maniac => Rules { call_margin: 0.08, raise_at: 0.70, bet_at: 0.55, open_at: 0.52, bluff: 0.35, size: 1.0 }, + Style::Fish => Rules { call_margin: 0.02, raise_at: 0.92, bet_at: 0.80, open_at: 0.78, bluff: 0.02, size: 0.4 }, + } + } + + pub fn act(self, view: View, reading: Reading, rng: Rng) -> (Act, Rng) { + let rules = self.rules(); + let s = reading.strength; + let to_call = view.to_call; + let raise_from = match (reading.preflop && to_call <= OPEN_PRICE, to_call > 0.0) { + (true, _) => rules.open_at, + (false, true) => rules.raise_at, + (false, false) => rules.bet_at, + }; + let raise = Act::RaiseTo(reading.own_bet + to_call + rules.size * (reading.pot + to_call)); + let can_raise = view.min_raise_to.is_some(); + if can_raise && s >= raise_from { + return (raise, rng); + } + if to_call > 0.0 { + let price = to_call / (reading.pot + to_call); + return (if s >= price + rules.call_margin { Act::Call } else { Act::Fold }, rng); + } + if can_raise && !reading.preflop && s < BLUFF_BELOW { + let (u, rng) = rng.unit(); + return (if u < rules.bluff { raise } else { Act::Check }, rng); + } + (Act::Check, rng) + } +} + +/// Equity of `hole` against one random hand, ties counting half; seed-fixed Monte Carlo. +pub fn strength(hole: &[Card], board: &[Card], rng: Rng) -> f64 { + let mut known = hole.to_vec(); + known.extend_from_slice(board); + let pool = deck::without(&known); + let missing = 5 - board.len(); + let mut rng = rng; + let mut won = 0.0; + for _ in 0..STRENGTH_SAMPLES { + let (cards, next) = deck::draw(&pool, 2 + missing, rng).expect("enough cards"); + rng = next; + let mut full = board.to_vec(); + full.extend_from_slice(&cards[2..]); + let mine = best(HoleUsage::BestFiveOfAll, hole, &full).expect("valid cards"); + let theirs = best(HoleUsage::BestFiveOfAll, &cards[..2], &full).expect("valid cards"); + won += match mine.cmp(&theirs) { + std::cmp::Ordering::Greater => 1.0, + std::cmp::Ordering::Equal => 0.5, + std::cmp::Ordering::Less => 0.0, + }; + } + won / STRENGTH_SAMPLES as f64 +} diff --git a/src/sim/session.rs b/src/sim/session.rs index 774b2566..60903e32 100644 --- a/src/sim/session.rs +++ b/src/sim/session.rs @@ -60,6 +60,11 @@ fn mix(seed: u64, n: u64) -> u64 { /// Plays `deals` deals, each from every seat, and returns hero's win rate with its interval. /// A sample is one deal's mean over the seats, so position and card luck cancel within it. pub fn measure(setup: &Setup) -> Measurement { + deal_samples(setup).1 +} + +/// Hero's luck-corrected result per deal in bb, for paired comparisons, with the measurement. +pub fn deal_samples(setup: &Setup) -> (Vec, Measurement) { let players = setup.players; let mut samples = Vec::with_capacity(setup.deals as usize); let mut raw_samples = Vec::with_capacity(setup.deals as usize); @@ -96,7 +101,7 @@ pub fn measure(setup: &Setup) -> Measurement { } (m.bb_per_100, m.ci95) = rate(&samples); (m.raw_bb_per_100, m.raw_ci95) = rate(&raw_samples); - m + (samples, m) } /// Mean and 95 % half width of per-deal results, both in bb/100. diff --git a/src/sim/table.rs b/src/sim/table.rs index d7de6fae..e950c64f 100644 --- a/src/sim/table.rs +++ b/src/sim/table.rs @@ -4,6 +4,7 @@ use super::luck; use super::opponent::{Act, Opponent, View}; +use super::reader::{strength, Reading}; use crate::card::{deck, Card}; use crate::engine::decide::decide; use crate::game::{ActionKind, ActionRecord, Choice, SeenAction, Spot, Street, Villain}; @@ -191,12 +192,27 @@ impl Table<'_> { } } + /// What a reading opponent knows. Its own seed, so that it does not depend on hero's play. + fn reading(&self, i: usize) -> Reading { + let board = &self.setup.deal.board[..self.street.board_len()]; + let seed = self.setup.seed ^ ((i as u64 + 1) << 32) ^ (self.street.board_len() as u64 + 1).wrapping_mul(0x51_7CC1); + Reading { + strength: strength(&self.setup.deal.holes[i], board, Rng::seeded(seed)), + pot: self.total.iter().sum(), + own_bet: self.bet[i], + preflop: self.street == Street::Preflop, + } + } + fn act(&mut self, i: usize) -> bool { let view = self.view(i); let act = if i == self.hero { self.hero_act(view) } else { - let (act, rng) = self.setup.opponent.act(view, self.rng); + let (act, rng) = match self.setup.opponent { + Opponent::Reader(style) => style.act(view, self.reading(i), self.rng), + blind => blind.act(view, self.rng), + }; self.rng = rng; act }; diff --git a/src/wire/decode_villain.rs b/src/wire/decode_villain.rs index 8cb0c475..8760a166 100644 --- a/src/wire/decode_villain.rs +++ b/src/wire/decode_villain.rs @@ -1,8 +1,9 @@ +use crate::exploit::mark::with_mark; use crate::exploit::profile::Profile; use crate::exploit::sample::shrink; use crate::fault::Fault; use crate::game::Villain; -use crate::json::field::{at, join, optional}; +use crate::json::field::{at, join, optional, text}; use crate::json::member::{flag_member, number_member, opt_items_member, opt_number_member, u8_member}; use crate::json::Value; @@ -24,12 +25,21 @@ fn profile(villain: &Value, path: &str) -> Result, Fault> { })) } +/// `marke` (extension, exploit::mark): the client's label fills what the profile does not know. +fn marked_profile(villain: &Value, path: &str) -> Result, Fault> { + let measured = profile(villain, path)?; + Ok(match optional(villain, path, "marke")? { + Some(mark) => with_mark(measured, text(mark, &join(path, "marke"))?), + None => measured, + }) +} + fn villain(value: &Value, path: &str) -> Result { Ok(Villain { seat: u8_member(value, path, "seat")?, stack: number_member(value, path, "stack")?, folded: flag_member(value, path, "folded")?, - profile: profile(value, path)?, + profile: marked_profile(value, path)?, }) } diff --git a/tests/engine_multiway.rs b/tests/engine_multiway.rs index c5c2dca9..3a010e7a 100644 --- a/tests/engine_multiway.rs +++ b/tests/engine_multiway.rs @@ -43,14 +43,14 @@ fn semibluffs_need_at_most_two_villains() { #[test] fn effective_thresholds_combine_texture_and_player_count() { - // Medium hand, dry board (wetness 0.1): texture gives margin 0.034, value 0.692. + // Medium hand, dry board (wetness 0.1): texture gives margin 0.034, value 0.652. let read = read_of(Made::MiddlePair, Draw::None, 0, SuitPattern::Rainbow, 0.1); let spot = with_villains(round_flop(), 3); let e = effective(&spot, 0.5, &BASE, &read); assert_eq!(e.villains, 3); assert!(close(e.share, 0.5 * 0.97 * 0.97), "{e:?}"); assert!(close(e.call_margin, 0.034 + 0.02), "{e:?}"); - assert!(close(e.value_raise, 0.692 + 0.10), "{e:?}"); + assert!(close(e.value_raise, 0.652 + 0.10), "{e:?}"); assert!(e.value_ok && e.raise_ok && !e.semibluff_ok); } @@ -84,7 +84,7 @@ fn a_share_that_calls_heads_up_folds_four_way() { #[test] fn a_share_that_value_raises_heads_up_only_calls_three_way() { - let share = estimate(0.70, 0.002); + let share = estimate(0.64, 0.002); let heads_up = choose_postflop(&with_villains(round_flop(), 1), &share, &BASE, &neutral_read()); assert!(matches!(heads_up.choice, Choice::Raise { .. }), "{heads_up:?}"); let three_way = choose_postflop(&with_villains(round_flop(), 3), &share, &BASE, &neutral_read()); diff --git a/tests/engine_texture_stance.rs b/tests/engine_texture_stance.rs index 01724983..7c3f85a8 100644 --- a/tests/engine_texture_stance.rs +++ b/tests/engine_texture_stance.rs @@ -7,7 +7,7 @@ use pokerfreak::read::made::Made; use pokerfreak::read::suit_pattern::SuitPattern; use spot_fixture::read_of; -const BASE: Thresholds = Thresholds::BASE; // call_margin 0.02, value_raise 0.62 +const BASE: Thresholds = Thresholds::BASE; // call_margin 0.02, value_raise 0.58 fn close(a: f64, b: f64) -> bool { (a - b).abs() < 1e-9 @@ -20,7 +20,7 @@ fn medium_hand_on_a_wet_board_loses_the_thin_value_raise_and_pays_more() { assert!(!s.value_ok); assert!(s.raise_ok); assert!(close(s.call_margin, 0.02 + 0.01 + 0.04 * 0.8), "{s:?}"); - assert!(close(s.value_raise, 0.62 + 0.06 + 0.12 * 0.8), "{s:?}"); + assert!(close(s.value_raise, 0.58 + 0.06 + 0.12 * 0.8), "{s:?}"); } #[test] @@ -29,7 +29,7 @@ fn medium_hand_on_a_dry_board_may_still_value_raise_but_needs_more() { let s = texture_stance(&BASE, &read, true); assert!(s.value_ok); assert!(close(s.call_margin, 0.02 + 0.01 + 0.004), "{s:?}"); - assert!(close(s.value_raise, 0.62 + 0.06 + 0.012), "{s:?}"); + assert!(close(s.value_raise, 0.58 + 0.06 + 0.012), "{s:?}"); } #[test] @@ -45,7 +45,7 @@ fn strong_hand_on_a_dry_board_raises_slightly_below_the_value_threshold() { let read = read_of(Made::TopPairGoodKicker, Draw::None, 0, SuitPattern::Rainbow, 0.0); let s = texture_stance(&BASE, &read, true); assert!(s.value_ok); - assert!(close(s.value_raise, 0.58), "{s:?}"); + assert!(close(s.value_raise, 0.54), "{s:?}"); assert!(close(s.call_margin, 0.02), "{s:?}"); } @@ -53,7 +53,7 @@ fn strong_hand_on_a_dry_board_raises_slightly_below_the_value_threshold() { fn strong_hand_on_a_wet_board_wants_more_equity_to_raise() { let read = read_of(Made::Overpair, Draw::None, 0, SuitPattern::TwoTone, 1.0); let s = texture_stance(&BASE, &read, true); - assert!(close(s.value_raise, 0.62 + 0.05), "{s:?}"); + assert!(close(s.value_raise, 0.58 + 0.05), "{s:?}"); assert!(close(s.call_margin, 0.02 + 0.02), "{s:?}"); } @@ -61,7 +61,7 @@ fn strong_hand_on_a_wet_board_wants_more_equity_to_raise() { fn strong_hand_on_a_four_flush_board_is_more_careful_still() { let read = read_of(Made::TwoPair, Draw::None, 0, SuitPattern::FourFlush, 0.5); let s = texture_stance(&BASE, &read, true); - assert!(close(s.value_raise, 0.62 + 0.08 + 0.025), "{s:?}"); + assert!(close(s.value_raise, 0.58 + 0.08 + 0.025), "{s:?}"); assert!(close(s.call_margin, 0.02 + 0.01 + 0.03), "{s:?}"); } @@ -70,7 +70,7 @@ fn weak_hand_without_draw_facing_a_bet_is_stricter() { let read = read_of(Made::BottomPair, Draw::None, 0, SuitPattern::Rainbow, 0.2); let s = texture_stance(&BASE, &read, true); assert!(close(s.call_margin, 0.05), "{s:?}"); - assert!(close(s.value_raise, 0.72), "{s:?}"); + assert!(close(s.value_raise, 0.68), "{s:?}"); } #[test] @@ -99,7 +99,7 @@ fn monsters_are_never_moved() { for wet in [0.0, 0.5, 1.0] { let read = read_of(Made::FullHouse, Draw::None, 0, suits, wet); let s = texture_stance(&BASE, &read, true); - assert!(close(s.call_margin, 0.02) && close(s.value_raise, 0.62), "{s:?}"); + assert!(close(s.call_margin, 0.02) && close(s.value_raise, 0.58), "{s:?}"); assert!(s.value_ok && s.raise_ok); } } diff --git a/tests/pipeline_mark.rs b/tests/pipeline_mark.rs new file mode 100644 index 00000000..99ab6a4d --- /dev/null +++ b/tests/pipeline_mark.rs @@ -0,0 +1,60 @@ +//! Extension field `villains[].marke`: the client's own label of a player, sent by the shell. +//! +//! A beginner or fish mark stands in for numbers we do not have yet: it fills the profile fields +//! that are missing, measured values win. Unknown marks change nothing. + +mod support; + +use pokerfreak::wire::respond::respond; +use support::{action, cards_json, field, short}; + +const STATION: &str = r#","profile":{"vpip":0.55,"pfr":0.05,"foldToBet":0.15,"aggression":0.2}"#; +const NIT: &str = r#","profile":{"vpip":0.11,"pfr":0.08,"foldToBet":0.8,"aggression":0.15}"#; + +/// The button first in; the two blinds carry `extra` (a mark, a profile or both). +fn steal(hero: &str, extra: &str) -> String { + format!( + r#"{{"variant":"NLHE","bigBlind":1,"seats":6,"heroSeat":6,"buttonSeat":6,"heroCards":{},"street":"PREFLOP","pot":1.5,"toCall":1,"heroStack":100,"minRaiseTo":2,"maxRaiseTo":100,"legalActions":["FOLD","CALL","RAISE"],"villains":[{{"seat":1,"stack":100,"folded":false{extra}}},{{"seat":2,"stack":100,"folded":false{extra}}}]}}"#, + cards_json(&short(hero)), + ) +} + +/// K7o: an equilibrium open, not stolen against stations (`pipeline_bluff`). +const HERO: &str = "Kd 7c"; + +#[test] +fn a_beginner_mark_changes_the_recommendation() { + assert_eq!(action(&respond(&steal(HERO, ""))), "RAISE"); + assert_eq!(action(&respond(&steal(HERO, r#","marke":"Anfaenger""#))), "FOLD"); +} + +#[test] +fn a_fish_mark_counts_like_a_beginner() { + assert_eq!(respond(&steal(HERO, r#","marke":"FISH""#)), respond(&steal(HERO, r#","marke":"Anfaenger""#))); +} + +#[test] +fn an_unknown_mark_changes_nothing() { + assert_eq!(respond(&steal(HERO, r#","marke":"VIP""#)), respond(&steal(HERO, ""))); +} + +#[test] +fn measured_values_beat_the_mark() { + let measured = format!(r#","marke":"Anfaenger"{NIT}"#); + assert_eq!(respond(&steal(HERO, &measured)), respond(&steal(HERO, NIT))); + assert_ne!(respond(&steal(HERO, &measured)), respond(&steal(HERO, STATION))); +} + +#[test] +fn a_mark_fills_only_the_missing_fields() { + // vpip measured tight, fold-to-bet from the mark: not the same player as the mark alone. + let partial = r#","marke":"Anfaenger","profile":{"vpip":0.11,"pfr":0.08}"#; + assert_eq!(action(&respond(&steal(HERO, partial))), action(&respond(&steal(HERO, r#","profile":{"vpip":0.11,"pfr":0.08,"foldToBet":0.25,"aggression":0.2}"#)))); +} + +#[test] +fn a_mark_that_is_no_text_is_refused() { + let out = respond(&steal(HERO, r#","marke":7"#)); + assert_eq!(action(&out), "ABSTAIN", "{out}"); + assert!(field(&out, "reason").unwrap_or("").contains("marke"), "{out}"); +} diff --git a/tests/sim_benchmark.rs b/tests/sim_benchmark.rs new file mode 100644 index 00000000..2827d87e --- /dev/null +++ b/tests/sim_benchmark.rs @@ -0,0 +1,273 @@ +//! Benchmark: Ist eine Änderung besser oder schlechter? Dieselben Austeilungen, je Austeilung die +//! Differenz zur Basislinie, das Urteil nur, wenn das 95-%-Intervall der Differenz die 0 ausschließt. + +use pokerfreak::rng::Rng; +use pokerfreak::sim::benchmark::{overall, parse, render, verdict_of_run, Run, ScenarioRun, SCENARIOS}; +use pokerfreak::sim::opponent::{Act, Opponent, View}; +use pokerfreak::sim::paired::{compare, Verdict}; +use pokerfreak::sim::reader::{strength, Reading, Style}; +use pokerfreak::sim::session::{deal_samples, measure, Setup}; +use pokerfreak::card::Card; + +fn scenario(name: &str, samples: Vec) -> ScenarioRun { + ScenarioRun { + name: name.to_string(), + deals: samples.len() as u32, + seed: 7, + decisions: 10, + abstains: 1, + invalid: 0, + samples, + } +} + +fn run(scenarios: Vec) -> Run { + Run { label: "abc123".to_string(), scenarios } +} + +// -- Gepaarter Vergleich -------------------------------------------------------------------- + +#[test] +fn unchanged_results_are_identical_not_merely_unclear() { + let c = compare(&[1.0, -2.0, 3.0], &[1.0, -2.0, 3.0]).unwrap(); + assert_eq!(c.verdict, Verdict::Identical); + assert_eq!(c.delta_bb_per_100, 0.0); + assert_eq!(c.ci95, 0.0); + assert_eq!(c.changed_deals, 0); +} + +#[test] +fn a_clear_gain_is_better_a_clear_loss_is_worse() { + let base = vec![0.0; 100]; + let gain: Vec = (0..100).map(|i| 1.0 + (i % 2) as f64 * 0.1).collect(); + let loss: Vec = gain.iter().map(|g| -g).collect(); + let better = compare(&base, &gain).unwrap(); + assert_eq!(better.verdict, Verdict::Better); + assert!((better.delta_bb_per_100 - 105.0).abs() < 1e-9); + assert_eq!(better.changed_deals, 100); + assert_eq!(compare(&base, &loss).unwrap().verdict, Verdict::Worse); +} + +#[test] +fn noise_around_zero_stays_unclear() { + let base = vec![0.0; 100]; + let noise: Vec = (0..100).map(|i| if i % 2 == 0 { 5.0 } else { -5.0 }).collect(); + assert_eq!(compare(&base, &noise).unwrap().verdict, Verdict::Unclear); +} + +#[test] +fn the_interval_decides_at_its_edge() { + // Mittel 0,5, Standardabweichung der Differenzen 1,0: mit n = 16 trennt das Intervall (±0,49) + // gerade noch von 0, mit n = 12 (±0,566) nicht mehr. + let diffs = |n: usize| -> Vec { + (0..n).map(|i| if i % 2 == 0 { 0.5 + d(n) } else { 0.5 - d(n) }).collect() + }; + fn d(n: usize) -> f64 { + (((n - 1) as f64) / n as f64).sqrt() + } + assert_eq!(compare(&vec![0.0; 16], &diffs(16)).unwrap().verdict, Verdict::Better); + assert_eq!(compare(&vec![0.0; 12], &diffs(12)).unwrap().verdict, Verdict::Unclear); +} + +#[test] +fn different_lengths_are_refused() { + assert!(compare(&[1.0, 2.0], &[1.0]).is_err()); + assert!(compare(&[], &[]).is_err()); +} + +// -- Gesamturteil --------------------------------------------------------------------------- + +#[test] +fn the_verdict_covers_all_scenarios_with_equal_weight() { + let base = run(vec![scenario("a", vec![0.0; 50]), scenario("b", vec![0.0; 50])]); + let new = run(vec![scenario("a", vec![1.0; 50]), scenario("b", vec![0.0; 50])]); + let report = verdict_of_run(&base, &new).unwrap(); + assert_eq!(report.scenarios[0].1.verdict, Verdict::Better); + assert_eq!(report.scenarios[1].1.verdict, Verdict::Identical); + assert!((report.overall.delta_bb_per_100 - 50.0).abs() < 1e-9); + assert_eq!(report.overall.verdict, Verdict::Better); +} + +#[test] +fn a_loss_in_one_scenario_can_hide_in_the_total_but_not_in_the_report() { + let up: Vec = vec![2.0; 50]; + let down: Vec = vec![-1.0; 50]; + let base = run(vec![scenario("a", vec![0.0; 50]), scenario("b", vec![0.0; 50])]); + let new = run(vec![scenario("a", up), scenario("b", down)]); + let report = verdict_of_run(&base, &new).unwrap(); + assert_eq!(report.overall.verdict, Verdict::Better); + assert_eq!(report.scenarios[1].1.verdict, Verdict::Worse); + assert!(report.has_regression()); +} + +#[test] +fn only_identical_scenarios_are_identical_overall() { + let base = run(vec![scenario("a", vec![1.0, 2.0])]); + let report = verdict_of_run(&base, &base.clone()).unwrap(); + assert_eq!(report.overall.verdict, Verdict::Identical); + assert!(!report.has_regression()); +} + +#[test] +fn overall_of_independent_scenarios_adds_variances() { + let a = compare(&vec![0.0; 100], &(0..100).map(|i| if i % 2 == 0 { 1.0 } else { 0.0 }).collect::>()).unwrap(); + let o = overall(&[a, a]); + assert!((o.delta_bb_per_100 - a.delta_bb_per_100).abs() < 1e-9); + assert!((o.ci95 - a.ci95 / 2f64.sqrt()).abs() < 1e-9); +} + +#[test] +fn comparing_other_conditions_is_refused() { + let base = run(vec![scenario("a", vec![0.0; 50])]); + let other_name = run(vec![scenario("b", vec![0.0; 50])]); + let other_deals = run(vec![scenario("a", vec![0.0; 40])]); + let mut other_seed = base.clone(); + other_seed.scenarios[0].seed = 8; + let missing = run(vec![]); + for other in [other_name, other_deals, other_seed, missing] { + assert!(verdict_of_run(&base, &other).is_err()); + } +} + +#[test] +fn an_invalid_request_counts_as_a_regression() { + let base = run(vec![scenario("a", vec![1.0, 2.0])]); + let mut new = base.clone(); + new.scenarios[0].invalid = 1; + assert!(verdict_of_run(&base, &new).unwrap().has_regression()); +} + +// -- Datei ---------------------------------------------------------------------------------- + +#[test] +fn the_file_returns_every_value_bit_for_bit() { + let r = run(vec![scenario("heads-up reg", vec![0.1 + 0.2, -1e-300, 1.0 / 3.0]), scenario("x", vec![5.0])]); + assert_eq!(parse(&render(&r)).unwrap(), r); +} + +#[test] +fn a_damaged_file_is_refused() { + let good = render(&run(vec![scenario("a", vec![1.0, 2.0])])); + assert!(parse("").is_err()); + assert!(parse(&good.replace("deals 2", "deals 3")).is_err()); + assert!(parse(&good.replace(" 2\n", " zwei\n")).is_err()); + assert!(parse("unsinn\n").is_err()); +} + +// -- Gegner, die ihre Karten ansehen -------------------------------------------------------- + +fn cards(text: &str) -> Vec { + Card::parse_list(text).expect("cards") +} + +fn facing(to_call: f64) -> View { + View { to_call, min_raise_to: Some(to_call * 2.0), max_raise_to: Some(100.0) } +} + + +fn read(strength: f64, pot: f64) -> Reading { + Reading { strength, pot, own_bet: 0.0, preflop: false } +} + +fn acts(style: Style, view: View, reading: Reading, n: u64) -> Vec { + (0..n).map(|s| style.act(view, reading, Rng::seeded(s)).0).collect() +} + +#[test] +fn strength_ranks_hands_and_knows_the_nuts() { + let aces = strength(&cards("As Ah"), &[], Rng::seeded(1)); + let trash = strength(&cards("7c 2d"), &[], Rng::seeded(1)); + assert!(aces > 0.8 && trash < 0.42, "{aces} {trash}"); + let nuts = strength(&cards("As Ks"), &cards("Qs Js Ts 2d 3c"), Rng::seeded(1)); + assert_eq!(nuts, 1.0); +} + +#[test] +fn every_style_folds_air_to_a_pot_bet_and_raises_the_nuts() { + for style in Style::ALL { + let view = facing(10.0); + assert!(acts(style, view, read(0.15, 20.0), 50).iter().all(|a| *a == Act::Fold), "{style:?}"); + assert!(matches!(style.act(view, read(1.0, 20.0), Rng::seeded(1)).0, Act::RaiseTo(_)), "{style:?}"); + } +} + +#[test] +fn the_styles_differ_where_they_should() { + let view = facing(10.0); + // Mittlere Hand gegen eine Topf-Wette: der Fisch zahlt, der Nit nicht. + let middling = read(0.5, 20.0); + assert_eq!(Style::Fish.act(view, middling, Rng::seeded(1)).0, Act::Call); + assert_eq!(Style::Nit.act(view, middling, Rng::seeded(1)).0, Act::Fold); + // Luft ohne Preis: der Maniac blufft oft, der Nit nie, der Reg selten. + let free = View { to_call: 0.0, min_raise_to: Some(1.0), max_raise_to: Some(100.0) }; + let bluffs = |style| acts(style, free, read(0.2, 10.0), 1000).iter().filter(|a| matches!(a, Act::RaiseTo(_))).count(); + assert_eq!(bluffs(Style::Nit), 0); + assert!(bluffs(Style::Reg) > 20 && bluffs(Style::Reg) < 200, "{}", bluffs(Style::Reg)); + assert!(bluffs(Style::Maniac) > 250, "{}", bluffs(Style::Maniac)); +} + +#[test] +fn a_bet_is_sized_from_the_pot_on_top_of_the_call() { + // Reg: zwei Drittel des Topfs nach dem Mitgehen. 5 gesetzt, 10 zu zahlen, 30 im Topf. + let view = View { to_call: 10.0, min_raise_to: Some(25.0), max_raise_to: Some(500.0) }; + let reading = Reading { strength: 1.0, pot: 30.0, own_bet: 5.0, preflop: false }; + let (act, _) = Style::Reg.act(view, reading, Rng::seeded(1)); + let Act::RaiseTo(to) = act else { panic!("{act:?}") }; + assert!((to - (5.0 + 10.0 + 40.0 * 2.0 / 3.0)).abs() < 1e-9, "{to}"); +} + +#[test] +fn preflop_a_good_hand_opens_but_does_not_reraise() { + let open = View { to_call: 0.5, min_raise_to: Some(2.0), max_raise_to: Some(100.0) }; + let reraise = View { to_call: 2.0, min_raise_to: Some(5.0), max_raise_to: Some(100.0) }; + let good = Reading { strength: 0.65, pot: 1.5, own_bet: 0.5, preflop: true }; + assert!(matches!(Style::Reg.act(open, good, Rng::seeded(1)).0, Act::RaiseTo(_))); + assert_eq!(Style::Reg.act(reraise, Reading { pot: 4.0, ..good }, Rng::seeded(1)).0, Act::Call); +} + +#[test] +fn a_raise_is_never_offered_when_impossible() { + let view = View { to_call: 5.0, min_raise_to: None, max_raise_to: None }; + for style in Style::ALL { + assert_eq!(style.act(view, read(1.0, 10.0), Rng::seeded(1)).0, Act::Call); + } +} + +#[test] +fn reading_opponents_play_legal_hands_and_lose_chips_to_nobody() { + for style in Style::ALL { + for players in [2u8, 6] { + let s = Setup { players, opponent: Opponent::Reader(style), deals: 4, stack_bb: 100.0, seed: 3 }; + let m = measure(&s); + assert_eq!(m.invalid, 0, "{style:?} {players}"); + assert!(m.decisions > 0); + } + } +} + +#[test] +fn a_reading_opponent_does_not_play_like_a_blind_one() { + let s = |opponent| Setup { players: 2, opponent, deals: 40, stack_bb: 100.0, seed: 3 }; + assert_ne!(deal_samples(&s(Opponent::Reader(Style::Nit))).0, deal_samples(&s(Opponent::Reader(Style::Maniac))).0); +} + +// -- Messung -------------------------------------------------------------------------------- + +#[test] +fn deal_samples_agree_with_the_measurement() { + let s = Setup { players: 2, opponent: Opponent::RandomLegal, deals: 30, stack_bb: 100.0, seed: 9 }; + let (samples, _) = deal_samples(&s); + let mean = samples.iter().sum::() / 30.0; + assert_eq!(samples.len(), 30); + assert!((100.0 * mean - measure(&s).bb_per_100).abs() < 1e-9); +} + +#[test] +fn the_scenarios_have_unique_names_and_no_saturated_opponent() { + let mut names: Vec<_> = SCENARIOS.iter().map(|s| s.name).collect(); + names.sort(); + names.dedup(); + assert_eq!(names.len(), SCENARIOS.len()); + // Der Folder ist immer +75: er könnte keine Änderung zeigen. + assert!(SCENARIOS.iter().all(|s| s.setup.opponent != Opponent::Folder)); +}