Commit 79345f7
committed
Fix analyzer marking vertical opening plays as mistakes
On an empty board, the move generator only produces horizontal plays;
vertical openers are transpositionally equivalent. The simmer's
AvoidPruningMoves already handled this (checking transpositions when
board is empty), but analyzeWithSim compared results using
Equals(playedMove, false, true) — never checking transpositions. This
caused vertical first plays to not match their horizontal equivalent in
the sim results, resulting in PlayedWinProb=0 and a spurious large
mistake.
Pass g.Board().IsEmpty() as the transposition flag when comparing moves
in the sim results, consistent with how AvoidPruningMoves works.
Fixes #447
https://claude.ai/code/session_01DWqqGkbTUn3YN36qThU6Ak1 parent a77435c commit 79345f7
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
541 | 547 | | |
542 | 548 | | |
543 | 549 | | |
544 | 550 | | |
545 | 551 | | |
546 | 552 | | |
547 | 553 | | |
548 | | - | |
| 554 | + | |
549 | 555 | | |
550 | 556 | | |
551 | 557 | | |
| |||
559 | 565 | | |
560 | 566 | | |
561 | 567 | | |
562 | | - | |
| 568 | + | |
563 | 569 | | |
564 | 570 | | |
565 | 571 | | |
| |||
0 commit comments