## Experiment / improvement log


### 2026-11-07 experiments modifyng depth 4 branch 2 case

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    1000 (100.0%)
Win 99% CI:   [99.3%, 100.0%] (Wilson score interval)
Time elapsed: 3290.7s (Avg time/game: 3.29s)
Avg moves/win: 16.4
Params:
seed=3646231424034793792 num_players=3 start_card=START_6 depth=4 branches=2 realizations=400 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
3 players (perfect!)

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    982 (98.2%)
Win 99% CI:   [96.8%, 99.0%] (Wilson score interval)
Time elapsed: 5309.4s (Avg time/game: 5.31s)
Avg moves/win: 26.9
Params:
seed=18397525259496448640 num_players=1 start_card=START_6 depth=4 branches=2 realizations=400 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
1 player

=========================================================
AUTOPLAY STATS:
Games Played: 5000 of 5000
Games Won:    4997 (99.9%)
Win 99% CI:   [99.8%, 100.0%] (Wilson score interval)
Time elapsed: 19672.3s (Avg time/game: 3.93s)
Avg moves/win: 18.4
Params:
seed=15185147611081000256 num_players=2 start_card=START_6 depth=4 branches=2 realizations=400 rerealization_mode=INVARIANT_OPPONENTS_HAND w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
Invariant opponent's hand, running 5000

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    990 (99.0%)
Win 99% CI:   [97.8%, 99.5%] (Wilson score interval)
Time elapsed: 5052.7s (Avg time/game: 5.05s)
Avg moves/win: 25.8
Params:
seed=8191378389790000256 num_players=2 start_card=START_6 depth=4 branches=2 realizations=400 rerealization_mode=RANDOMIZE_OPPONENTS_HAND w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_h
=========================================================
Randomize opponent's hand, down to 99%


=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    999 (99.9%)
Win 99% CI:   [99.2%, 100.0%] (Wilson score interval)
Time elapsed: 4208.1s (Avg time/game: 4.21s)
Avg moves/win: 19.9
Params:
seed=17515987729874551872 num_players=2 start_card=START_6 depth=4 branches=2 realizations=400 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
200->400, close to perfect play!

# LOSS_CONSECUTIVE_PASS turns=61 deck=27 hands=3,3 2026-11-07T10:05:50.193
seed=13832952055727486170 num_players=2 start_card=START_6 depth=4 branches=2 realizations=400 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274

The single loss here is from creating this really stupid void (as already noted in future work)
(Lost tunnels in the paste but it's the 1x2 which, has an exit pointing into it from the top!)

 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - j=6
 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - j=5
 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
 |  |  |  |  |  |  |  |  |  |  | ███ |  |  |  |
- -- -- -- -- -- -- -- -- -- -- -███- -- -- -- - j=4
 |  |  |  |  |  |  |  |  |  |  | ███ |  |  |  |
 |  |  |  |  |  |  |  |  |  |  | ███ |  |  |  |
- -- -- -- -- -- -- -- -- -- -- -███- -- -- -- - j=3
 |  |  |  |  |  |  |  |  |  |  | ███ |  |  |  |
 |  |  |  |  |  |  |  |  |  | ██████ |  |  |  |
- -- -- -- -- -- -- -- -- -- -██████- -- -- -- - j=2
 |  |  |  |  |  |  |  |  |  | ██████ |  |  |  |
 |  |  |  |  | ████████████ |  | ███ |  |  |  |
- -- -- -- -- -████████████- -- -███- -- -- -- - j=1
 |  |  |  |  | ████████████ |  | ███ |  |  |  |
 |  |  |  |  | ████████████████████████ |  |  |
- -- -- -- -- -████████████████████████- -- -- - j=0
 |  |  |  |  | ████████████████████████ |  |  |
 |  |  | █████████████████████████████████ |  |
- -- -- -█████████████████████████████████- -- - j=-1
 |  |  | █████████████████████████████████ |  |
 |  | █████████ | ██████ |  | ██████ | ███ |  |
- -- -█████████- -██████- -- -██████- -███- -- - j=-2
 |  | █████████ | ██████ |  | ██████ | ███ |  |
 |  | ██████████████████████████████ |  |  |  |
- -- -██████████████████████████████- -- -- -- - j=-3
 |  | ██████████████████████████████ |  |  |  |
 |  |  |  |  | █████████████████████ |  |  |  |
- -- -- -- -- -█████████████████████- -- -- -- - j=-4
 |  |  |  |  | █████████████████████ |  |  |  |
 |  |  |  |  |  | ██████████████████ |  |  |  |
- -- -- -- -- -- -██████████████████- -- -- -- - j=-5
 |  |  |  |  |  | ██████████████████ |  |  |  |
 |  |  |  |  |  | ████████████ | ███ |  |  |  |
- -- -- -- -- -- -████████████- -███- -- -- -- - j=-6
 |  |  |  |  |  | ████████████ | ███ |  |  |  |
 |  |  |  |  |  | ████████████ |  |  |  |  |  |
- -- -- -- -- -- -████████████- -- -- -- -- -- - j=-7
 |  |  |  |  |  | ████████████ |  |  |  |  |  |
 |  |  |  |  |  |  | ██████ |  |  |  |  |  |  |
- -- -- -- -- -- -- -██████- -- -- -- -- -- -- - j=-8
 |  |  |  |  |  |  | ██████ |  |  |  |  |  |  |
 |  |  |  |  |  |  | ███ |  |  |  |  |  |  |  |
- -- -- -- -- -- -- -███- -- -- -- -- -- -- -- - j=-9
 |  |  |  |  |  |  | ███ |  |  |  |  |  |  |  |
 |  |  |  |  |  |  | ███ |  |  |  |  |  |  |  |
- -- -- -- -- -- -- -███- -- -- -- -- -- -- -- - j=-10
 |  |  |  |  |  |  | ███ |  |  |  |  |  |  |  |
 |  |  |  |  |  |  | ██████ |  |  |  |  |  |  |
- -- -- -- -- -- -- -██████- -- -- -- -- -- -- - j=-11
 |  |  |  |  |  |  | ██████ |  |  |  |  |  |  |
 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - j=-12
 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - j=-13
 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
-6 -5 -4 -3 -2 -1  0  1  2  3  4  5  6  7  8  9



=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    991 (99.1%)
Win 99% CI:   [97.9%, 99.6%] (Wilson score interval)
Time elapsed: 571.8s (Avg time/game: 0.57s)
Avg moves/win: 21.2
Params:
seed=16660669498665551872 num_players=2 start_card=START_6 depth=4 branches=2 realizations=50 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
200->50 realizations does negatively affect

### 2026-11-05

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    996 (99.6%)
Win 99% CI:   [98.7%, 99.9%] (Wilson score interval)
Time elapsed: 2104.6s (Avg time/game: 2.10s)
Avg moves/win: 20.6
Params:
seed=14005674621290551872 num_players=2 start_card=START_6 depth=4 branches=2 realizations=200 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
NEW BASELINE
Adding depth gives something 2x slower but quite impressive win rate, much faster than and comparable to depth 3 with more branching.

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    987 (98.7%)
Win 99% CI:   [97.4%, 99.4%] (Wilson score interval)
Time elapsed: 959.1s (Avg time/game: 0.96s)
Avg moves/win: 20.8
Params:
seed=11120107438040551872 num_players=2 start_card=START_6 depth=3 branches=2 realizations=200 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
For a comparable time per game, trading branches for depth was quite effective (+2%)

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    972 (97.2%)
Win 99% CI:   [95.5%, 98.3%] (Wilson score interval)
Time elapsed: 4099.1s (Avg time/game: 4.10s)
Avg moves/win: 22.8
Params:
seed=11604373361876655104 num_players=2 start_card=START_6 depth=2 branches=5 realizations=800 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
At 800, seems to saturate

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    975 (97.5%)
Win 99% CI:   [95.9%, 98.5%] (Wilson score interval)
Time elapsed: 2084.2s (Avg time/game: 2.08s)
Avg moves/win: 23.5
Params:
seed=9458705780709655104 num_players=2 start_card=START_6 depth=2 branches=5 realizations=400 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
200->400 0.5-1% bump

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    944 (94.4%)
Win 99% CI:   [92.2%, 96.0%] (Wilson score interval)
Time elapsed: 64.9s (Avg time/game: 0.06s)
Avg moves/win: 23.4
Params:
seed=9258849717959655104 num_players=2 start_card=START_6 depth=2 branches=5 realizations=10 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
200->10 more obvious degradation

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    965 (96.5%)
Win 99% CI:   [94.7%, 97.7%] (Wilson score interval)
Time elapsed: 276.3s (Avg time/game: 0.28s)
Avg moves/win: 23.1
Params:
seed=6321441329751655104 num_players=2 start_card=START_6 depth=2 branches=5 realizations=50 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
200->50 realizations actually only a small loss from the baseline
(Wonder how that changes with more depth, though)

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    985 (98.5%)
Win 99% CI:   [97.1%, 99.2%] (Wilson score interval)
Time elapsed: 678.8s (Avg time/game: 0.68s)
Avg moves/win: 19.1
Params:
seed=5598793930418655104 num_players=2 start_card=START_5 depth=2 branches=5 realizations=200 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
(5 exit start card is easier)

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    985 (98.5%)
Win 99% CI:   [97.1%, 99.2%] (Wilson score interval)
Time elapsed: 714.3s (Avg time/game: 0.71s)
Avg moves/win: 16.2
Params:
seed=4765906741126655104 num_players=4 start_card=START_6 depth=2 branches=5 realizations=200 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
(4 players gets even more)

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    980 (98.0%)
Win 99% CI:   [96.5%, 98.9%] (Wilson score interval)
Time elapsed: 877.3s (Avg time/game: 0.88s)
Avg moves/win: 18.3
Params:
seed=3658950986834655104 num_players=3 start_card=START_6 depth=2 branches=5 realizations=200 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
(3 players gets you about 2% over 2 players?!)

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    933 (93.3%)
Win 99% CI:   [91.0%, 95.1%] (Wilson score interval)
Time elapsed: 1126.4s (Avg time/game: 1.13s)
Avg moves/win: 29.6
Params:
seed=2060567326043655104 num_players=1 start_card=START_6 depth=2 branches=5 realizations=200 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
(1 player wins *less*? hmm..)

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    986 (98.6%)
Win 99% CI:   [97.3%, 99.3%] (Wilson score interval)
Time elapsed: 809.0s (Avg time/game: 0.81s)
Avg moves/win: 21.2
Params:
seed=633068479709655104 num_players=2 start_card=START_6 depth=2 branches=5 realizations=200 rerealization_mode=INVARIANT_OPPONENTS_HAND w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
(Knowledge of opponent's whole hand gets you +1-2%!)

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    959 (95.9%)
Win 99% CI:   [94.0%, 97.2%] (Wilson score interval)
Time elapsed: 1111.8s (Avg time/game: 1.11s)
Avg moves/win: 24.6
Params:
seed=12615514589297309952 num_players=2 start_card=START_6 depth=2 branches=5 realizations=200 rerealization_mode=RANDOMIZE_OPPONENTS_HAND w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
(randomizing opponent's hand loses you about a percent)

=========================================================
AUTOPLAY STATS:
Games Played: 1000 of 1000
Games Won:    968 (96.8%)
Win 99% CI:   [95.0%, 98.0%] (Wilson score interval)
Time elapsed: 1006.6s (Avg time/game: 1.01s)
Avg moves/win: 22.8
Params:
seed=11436523524547309952 num_players=2 start_card=START_6 depth=2 branches=5 realizations=200 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================
(Baseline for several above)

### 2026-11-05 heavy

=========================================================
AUTOPLAY STATS:
Games Played: 1000
Games Won:    998 (99.8%)
Win 99% CI:   [99.0%, 100.0%] (Wilson score interval)
Max games:    1000
Time elapsed: 21659.6s (Avg time/game: 21.66s)
Avg moves/win: 18.4
Params:
seed=3764408348757413184 num_players=2 start_card=START_6 depth=4 branches=5 realizations=200 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================

=========================================================
AUTOPLAY STATS:
Games Played: 1000
Games Won:    992 (99.2%)
Win 99% CI:   [98.1%, 99.7%] (Wilson score interval)
Max games:    1000
Time elapsed: 12703.3s (Avg time/game: 12.70s)
Avg moves/win: 20.3
Params:
seed=9096982395466964800 num_players=2 start_card=START_6 depth=3 branches=8 realizations=200 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================

(Losses mostly hard-to-fill voids?)

### 2026-11-01 1000x run with CI

Time/game redacted because forgot "caffeinate -i" and slept in the middle which inflated.

(All 7 losses were CONSECUTIVE_PASS)
=========================================================
AUTOPLAY STATS:
Games Played: 1000
Games Won:    993 (99.3%)
Win 99% CI:   [98.2%, 99.7%] (Wilson score interval)
Max games:    1000
Time elapsed: 24441.7s <REDACTED>
Avg moves/win: 20.0
Params:
seed=0 num_players=2 start_card=START_6 depth=3 branches=8 realizations=200 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274
=========================================================

### 2026-11-01 Various small fixes

=========================================================
AUTOPLAY STATS:
Games Played: 1765
Games Won:    1757 (99.5%)
Max games:    5000
Time elapsed: 37860.1s (Avg time/game: 21.45s)
Avg moves/win: 19.6
=========================================================
Params from losses.txt:
seed=8859859316520758228 num_players=2 start_card=START_6 depth=3 branches=8 realizations=200 rerealization_mode=RANDOMIZE_SOME_CARDS w_merge_opportunities=0.214481 w_corner_openings=0.02623 w_finisher_cards=0.389665 w_two_exit_cards=0.22042 w_exits_in_hand=0.134246 w_u_shaped_holes=0.31274

### 2026-10-30 Seed workers the same (more realizations and games)

Does the change improve or at least not degrade win rate?
It seems like yes!
(And important lesson here that you need a lot of runs - the
1000x 100 realizatino runs below didn't suffice to show anything)
)

5000 games

DEPTH :: 1;
BRANCHES :: 4;
REALIZATIONS :: 200;
REREALIZATION_MODE :: RerealizationMode.RANDOMIZE_SOME_CARDS;

// Bonus weights (decreases score)
W_MERGE_OPPORTUNITIES :: 0.214481;
W_CORNER_OPENINGS     :: 0.02623;
W_FINISHER_CARDS      :: 0.389665;
W_TWO_EXIT_CARDS      :: 0.22042;

// Penalty weights (increases score)
W_EXITS_IN_HAND       :: 0.134246;
W_U_SHAPED_HOLES      :: 0.31274;

WIth the change:

=========================================================
AUTOPLAY STATS:
Games Played: 4999
Games Won:    3731 (74.6%)
Max games:    5000
Time elapsed: 2353.6s (Avg time/game: 0.47s)
Avg moves/win: 25.4
=========================================================

WIthout the change

=========================================================
AUTOPLAY STATS:
Games Played: 4999
Games Won:    3382 (67.7%)
Max games:    5000
Time elapsed: 2769.3s (Avg time/game: 0.55s)
Avg moves/win: 25.2
=========================================================

 ...

### 2026-10-30 Seed workers the same

Want to confirm that this doesn't affect (or improves autoplay perf).
Playing with fast analysis params.

DEPTH :: 1;
BRANCHES :: 4;
REALIZATIONS :: 100;
REREALIZATION_MODE :: RerealizationMode.RANDOMIZE_SOME_CARDS;

// Bonus weights (decreases score)
W_MERGE_OPPORTUNITIES :: 0.214481;
W_CORNER_OPENINGS     :: 0.02623;
W_FINISHER_CARDS      :: 0.389665;
W_TWO_EXIT_CARDS      :: 0.22042;

// Penalty weights (increases score)
W_EXITS_IN_HAND       :: 0.134246;
W_U_SHAPED_HOLES      :: 0.31274;


With the change:

=========================================================
AUTOPLAY STATS:
Games Played: 999
Games Won:    737 (73.8%)
Max games:    1000
Time elapsed: 237.3s (Avg time/game: 0.24s)
Avg moves/win: 25.9
=========================================================

With the change again:

=========================================================
AUTOPLAY STATS:
Games Played: 999
Games Won:    747 (74.8%)
Max games:    1000
Time elapsed: 245.0s (Avg time/game: 0.25s)
Avg moves/win: 25.2
=========================================================

Without the change (seeding including move)

=========================================================
AUTOPLAY STATS:
Games Played: 999
Games Won:    753 (75.4%)
Max games:    1000
Time elapsed: 229.7s (Avg time/game: 0.23s)
Avg moves/win: 25.1
=========================================================

Without the change again:

=========================================================
AUTOPLAY STATS:
Games Played: 999
Games Won:    764 (76.5%)
Max games:    1000
Time elapsed: 224.2s (Avg time/game: 0.22s)
Avg moves/win: 24.7
=========================================================


### Older
Trying with START_6 now.

=========================================================
AUTOPLAY FINAL STATS:
Games Played: 1000
Games Won:    995 (99.5%)
Max games:    1000
Time elapsed: 27812.4s (Avg time/game: 27.81s)
Avg moves/win: 20.8
=========================================================

Score Params:{depth = 3; branches = 8; realizations = 300; rerealization_mode = RANDOMIZE_SOME_CARDS; w_merge_opportunities = 0.214481; w_corner_openings = 0.02623; w_finisher_cards = 0.389665; w_two_exit_cards = 0.22042; w_exits_in_hand = 0.134246; w_u_shaped_holes = 0.31274; }



(Think time/game might be messed up as we slept overnight..)

Depth:
=========================================================
AUTOPLAY FINAL STATS:
Games Played: 1000
Games Won:    997 (99.7%)
Max games:    1000
Time elapsed: 49836.4s (Avg time/game: 49.84s)
Avg moves/win: 17.2
=========================================================

Score Params:{depth = 5; branches = 2; realizations = 300; rerealization_mode = RANDOMIZE_SOME_CARDS; w_merge_opportunities = 0.214481; w_corner_openings = 0.02623; w_finisher_cards = 0.389665; w_two_exit_cards = 0.22042; w_exits_in_hand = 0.134246; w_u_shaped_holes = 0.31274; }

Branch:
=========================================================
AUTOPLAY FINAL STATS:
Games Played: 1000
Games Won:    998 (99.8%)
Max games:    1000
Time elapsed: 18113.0s (Avg time/game: 18.11s)
Avg moves/win: 17.6
=========================================================

Score Params:{depth = 3; branches = 8; realizations = 300; rerealization_mode = RANDOMIZE_SOME_CARDS; w_merge_opportunities = 0.214481; w_corner_openings = 0.02623; w_finisher_cards = 0.389665; w_two_exit_cards = 0.22042; w_exits_in_hand = 0.134246; w_u_shaped_holes = 0.31274; }


Does new randomization mode help? Looks like it:
Depth 2, fan 2, 200R, 944/1000 with randomize opponents hand
                      952/1000 with randomize some cards
                      972/1000 with invariant opponents hand

Variance is still quite high - need to run 1000 games and probably more realizations than this..

After lots of automated Jiggling,
- 35.1% over 2000 games for depth 0, 300 realizations
- Depth 1, fan 2, 300 realizations, 77/100, 0.51 s/game, 19.8 moves/win
- Depth 1, fan 2, 200 realizations, 75/100, 0.35 s/game, 21.9 moves/win
- Depth 1, fan 1, 100 realizations, 77/100, 0.19 s/game, 19.5 moves/win
- Depth 5, fan 2, 100 realizations, 98/100, 3.83 s/game, 25.2 moves/win
- Depth 5, fan 2, 100 realizations, 99/100, 3.46 s/game, 23.9 moves/win
- Depth 5, fan 2, 300 realizations, 99/100, 9.94 s/game, 25.2 moves/win

This last case often does 100/100. Looking at specific losing games to see what's up

Jiggling with depth 0 for maximum speed baseline:
- Depth 0, 100 realizations, 302/1000, 0.03 s/game

Jiggled up to 71.9% with depth 1, fan 1, 100 realizations

Baselines for jiggle
- Depth 1, fan 1, 100 realizations, 65/100, 0.27 s/game, 24.0 moves/win
- Depth 1, fan 2, 200 realizations, 71/100, 0.49 s/game, 26.1 moves/win

With change to undo moves instead of copying games
- Depth 5, fan 2,  100/100, 4.01 s/game, 26.7 moves/win [seems like no regression]

With adjustment to randomize opponents' hands as well with rerealize (100).
 - Depth 5, fan 2, 99/100, 5.02 s/game, 26.7 moves/win
 - Depth 1, fan 2, 66/100, 0.47 s/game, 22.4 moves/win

Previously (Multithread moves, 100 realizations, rerealize just shuffles deck)
 - Depth 5, fan 1, winning 99% (292/295), 0.68 s/game
 - Depth 5, fan 2, winning 100%  (1000/1000),  3.36 s/game [ rule of 3 says that means 95% confident we win >=99.7% of the time]
 - Depth 5, fan2, disable hand-based checks , 999/1000, 2.15 s/game
 - Depth 5, fan2, 100->25 realizations ,  997/1000, 1.57 s/game
 - Depth 5, fan2, 100->250 realizations ,  173/174, 15.23 s/game
 - Depth 1, fan 2, 76/100, 0.31 s/game, 22.8 moves/win

Previously: 95% win (314/330), 3.26s / game

All with START_5
