gammonview 3.6.0__tar.gz → 3.6.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. {gammonview-3.6.0 → gammonview-3.6.2}/CHANGELOG.md +36 -0
  2. {gammonview-3.6.0 → gammonview-3.6.2}/CLAUDE.md +9 -3
  3. {gammonview-3.6.0 → gammonview-3.6.2}/PKG-INFO +19 -8
  4. {gammonview-3.6.0 → gammonview-3.6.2}/README.md +18 -7
  5. {gammonview-3.6.0 → gammonview-3.6.2}/docs/CLI.md +6 -5
  6. {gammonview-3.6.0 → gammonview-3.6.2}/docs/METHODOLOGY.md +3 -1
  7. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/game_eval.py +94 -45
  8. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/presets.py +16 -7
  9. {gammonview-3.6.0 → gammonview-3.6.2}/gvengine-js/README.md +21 -4
  10. {gammonview-3.6.0 → gammonview-3.6.2}/gvengine-js/scripts/fixtures.py +11 -5
  11. {gammonview-3.6.0 → gammonview-3.6.2}/gvengine-js/test/fixtures/parity.json +1 -1
  12. {gammonview-3.6.0 → gammonview-3.6.2}/gvengine-js/test/parity.test.mjs +26 -1
  13. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/xg.py +8 -7
  14. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/package-lock.json +2 -2
  15. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/package.json +2 -2
  16. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/og2gva.js +5 -6
  17. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/xg2gva.js +8 -7
  18. gammonview-3.6.2/gvformat-js/test/test-cube-action-counting.js +57 -0
  19. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-og.js +9 -6
  20. gammonview-3.6.2/tests/test_cube_action_counting.py +71 -0
  21. gammonview-3.6.2/tests/test_illegal_play_branches.py +140 -0
  22. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_presets.py +4 -1
  23. {gammonview-3.6.0 → gammonview-3.6.2}/.gitattributes +0 -0
  24. {gammonview-3.6.0 → gammonview-3.6.2}/.github/workflows/ci.yml +0 -0
  25. {gammonview-3.6.0 → gammonview-3.6.2}/.github/workflows/engine.yml +0 -0
  26. {gammonview-3.6.0 → gammonview-3.6.2}/.github/workflows/publish.yml +0 -0
  27. {gammonview-3.6.0 → gammonview-3.6.2}/.gitignore +0 -0
  28. {gammonview-3.6.0 → gammonview-3.6.2}/.python-version +0 -0
  29. {gammonview-3.6.0 → gammonview-3.6.2}/CONTRIBUTING.md +0 -0
  30. {gammonview-3.6.0 → gammonview-3.6.2}/LICENSE +0 -0
  31. {gammonview-3.6.0 → gammonview-3.6.2}/THIRD-PARTY-NOTICES.md +0 -0
  32. {gammonview-3.6.0 → gammonview-3.6.2}/assets/logo.png +0 -0
  33. {gammonview-3.6.0 → gammonview-3.6.2}/docs/OGXM_COMPUTED_FIELDS.md +0 -0
  34. {gammonview-3.6.0 → gammonview-3.6.2}/docs/OGXM_JSON_SPEC_GAMMONVIEW.md +0 -0
  35. {gammonview-3.6.0 → gammonview-3.6.2}/docs/OGXM_V2_PROFILE.md +0 -0
  36. {gammonview-3.6.0 → gammonview-3.6.2}/docs/PRESET_ACCURACY.md +0 -0
  37. {gammonview-3.6.0 → gammonview-3.6.2}/docs/upstream-bgsage.md +0 -0
  38. {gammonview-3.6.0 → gammonview-3.6.2}/docs/v1/OGXM_FORMAT_SPEC_GAMMONVIEW.md +0 -0
  39. {gammonview-3.6.0 → gammonview-3.6.2}/experiments/2026-09-16-checker-mid-tier.md +0 -0
  40. {gammonview-3.6.0 → gammonview-3.6.2}/experiments/2026-09-17-checker-mid-tier-followup.md +0 -0
  41. {gammonview-3.6.0 → gammonview-3.6.2}/experiments/2026-09-19-cross-machine-costs.md +0 -0
  42. {gammonview-3.6.0 → gammonview-3.6.2}/experiments/2026-09-20-corpus-rerun.md +0 -0
  43. {gammonview-3.6.0 → gammonview-3.6.2}/experiments/2026-10-21-wc2-corpus.md +0 -0
  44. {gammonview-3.6.0 → gammonview-3.6.2}/experiments/bench.py +0 -0
  45. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/__init__.py +0 -0
  46. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/batch.py +0 -0
  47. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/checker_eval.py +0 -0
  48. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/compare_gva.py +0 -0
  49. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/loader.py +0 -0
  50. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/luck.py +0 -0
  51. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/match.py +0 -0
  52. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/ogxm_reconstructor.py +0 -0
  53. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/parentwatch.py +0 -0
  54. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/position.py +0 -0
  55. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/positionmove.py +0 -0
  56. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/progress.py +0 -0
  57. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/reconstruct_mat.py +0 -0
  58. {gammonview-3.6.0 → gammonview-3.6.2}/gvanalysis/share.py +0 -0
  59. {gammonview-3.6.0 → gammonview-3.6.2}/gvengine-js/.gitignore +0 -0
  60. {gammonview-3.6.0 → gammonview-3.6.2}/gvengine-js/bgsage.version +0 -0
  61. {gammonview-3.6.0 → gammonview-3.6.2}/gvengine-js/build.sh +0 -0
  62. {gammonview-3.6.0 → gammonview-3.6.2}/gvengine-js/package.json +0 -0
  63. {gammonview-3.6.0 → gammonview-3.6.2}/gvengine-js/scripts/assets.py +0 -0
  64. {gammonview-3.6.0 → gammonview-3.6.2}/gvengine-js/src/engine.js +0 -0
  65. {gammonview-3.6.0 → gammonview-3.6.2}/gvengine-js/src/entry.cpp +0 -0
  66. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/__init__.py +0 -0
  67. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/basefill.py +0 -0
  68. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/bgf.py +0 -0
  69. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/binary.py +0 -0
  70. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/export.py +0 -0
  71. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/game_reconstructor.py +0 -0
  72. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/legality.py +0 -0
  73. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/mat.py +0 -0
  74. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/mat_parser.py +0 -0
  75. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/merge.py +0 -0
  76. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/met.py +0 -0
  77. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/notation.py +0 -0
  78. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/ogid.py +0 -0
  79. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/ogxm2.py +0 -0
  80. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/ogxm2_passthrough.py +0 -0
  81. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/ogxm2_writer.py +0 -0
  82. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/place.py +0 -0
  83. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/reader.py +0 -0
  84. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/share.py +0 -0
  85. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat/stats.py +0 -0
  86. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/.gitignore +0 -0
  87. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/LICENSE +0 -0
  88. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/README.md +0 -0
  89. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/THIRD-PARTY-NOTICES.md +0 -0
  90. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/cli/README.md +0 -0
  91. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/cli/bgf2gva.js +0 -0
  92. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/cli/mat2gva.js +0 -0
  93. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/cli/xg2gva.js +0 -0
  94. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/basefill.js +0 -0
  95. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/bgf2gva.js +0 -0
  96. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/binary.js +0 -0
  97. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/constants.js +0 -0
  98. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/export.js +0 -0
  99. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/index.js +0 -0
  100. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/legality.js +0 -0
  101. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/mat2gva.js +0 -0
  102. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/merge.js +0 -0
  103. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/met.js +0 -0
  104. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/notation.js +0 -0
  105. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/ogid.js +0 -0
  106. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/ogxm2.js +0 -0
  107. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/ogxm2_passthrough.js +0 -0
  108. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/ogxm2_writer.js +0 -0
  109. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/place.js +0 -0
  110. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/reader.js +0 -0
  111. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/sha256.js +0 -0
  112. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/share.js +0 -0
  113. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/src/stats.js +0 -0
  114. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/mat/3WNK_g1Z-PLsh_HyvQ5j4a.json +0 -0
  115. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/mat/5nqfGw9bWG3deTaU.json +0 -0
  116. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/mat/B4_SrGcsKAQmoTyHlgJCbM.json +0 -0
  117. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/mat/C07OQCKyw4Pe-CnjFiAMYO.json +0 -0
  118. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/mat/MYdvw1qGuyaRUH__.json +0 -0
  119. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/mat/Sz-2PgKnvb6aFls69-qFXg.json +0 -0
  120. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/mat/UL-CV6F9jMM-E1Pu.json +0 -0
  121. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/mat/XCu3RJ0UvDg_Tldl.json +0 -0
  122. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/mat/baR-U643iUDpvzTC.json +0 -0
  123. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/mat/eXBNG5wZHS5Alu3P.json +0 -0
  124. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/mat/hQ8sVn2LbTdF4wRm.json +0 -0
  125. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/mat/rK7pXm4TqLb9NzWd.json +0 -0
  126. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/mat/uwvEbd63UvdX7SDin5o_Iw.json +0 -0
  127. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/annos-docs.json +0 -0
  128. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/annos-edits-sha256.json +0 -0
  129. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/annos-sha256.json +0 -0
  130. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/annos.expected.json +0 -0
  131. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/annos.ogxm +0 -0
  132. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/bgf-writer-sha256.json +0 -0
  133. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/blocks-docs.json +0 -0
  134. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/blocks-sha256.json +0 -0
  135. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/blocks.expected.json +0 -0
  136. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/blocks.ogxm +0 -0
  137. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/cube-on-two.expected.json +0 -0
  138. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/cube-on-two.ogxm +0 -0
  139. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/fields-docs.json +0 -0
  140. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/fields-sha256.json +0 -0
  141. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/fields.expected.json +0 -0
  142. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/fields.ogxm +0 -0
  143. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/foreign.ogxm +0 -0
  144. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/gen.py +0 -0
  145. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/match.expected.json +0 -0
  146. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/match.ogxm +0 -0
  147. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/passthrough-sha256.json +0 -0
  148. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/resign.expected.json +0 -0
  149. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/resign.ogxm +0 -0
  150. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/set-up.expected.json +0 -0
  151. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/set-up.ogxm +0 -0
  152. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/two-blocks.expected.json +0 -0
  153. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/two-blocks.ogxm +0 -0
  154. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/v1-chunks.gvab +0 -0
  155. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/v23-foreign.anchors.json +0 -0
  156. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/v23-foreign.ogxm +0 -0
  157. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/fixtures/ogxm2/writer-sha256.json +0 -0
  158. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-alternative-move-steps.js +0 -0
  159. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-basefill.js +0 -0
  160. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-bearoff-excess-steps.js +0 -0
  161. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-bgf-alternatives.js +0 -0
  162. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-bgf-embedded-cube.js +0 -0
  163. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-bgf-move-steps.js +0 -0
  164. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-chunk-passthrough.js +0 -0
  165. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-equity-loss.js +0 -0
  166. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-illegal-move.js +0 -0
  167. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-illegal-play-steps.js +0 -0
  168. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-legality.js +0 -0
  169. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-mat.js +0 -0
  170. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-merge.js +0 -0
  171. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-met.js +0 -0
  172. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-ogid.js +0 -0
  173. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-ogxm2-annos.js +0 -0
  174. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-ogxm2-blocks.js +0 -0
  175. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-ogxm2-fields.js +0 -0
  176. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-ogxm2-limits.js +0 -0
  177. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-ogxm2-passthrough.js +0 -0
  178. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-ogxm2-writer.js +0 -0
  179. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-ogxm2.js +0 -0
  180. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-ogxm23.js +0 -0
  181. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-place.js +0 -0
  182. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-robustness.js +0 -0
  183. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-roundtrip.js +0 -0
  184. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-share.js +0 -0
  185. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-stats.js +0 -0
  186. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-xg-cube.js +0 -0
  187. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-xg-eval-levels.js +0 -0
  188. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-xg-move-steps.js +0 -0
  189. {gammonview-3.6.0 → gammonview-3.6.2}/gvformat-js/test/test-xg-zero-win-eval.js +0 -0
  190. {gammonview-3.6.0 → gammonview-3.6.2}/pyproject.toml +0 -0
  191. {gammonview-3.6.0 → gammonview-3.6.2}/samples/README.md +0 -0
  192. {gammonview-3.6.0 → gammonview-3.6.2}/samples/bgf/3WNK_g1Z-PLsh_HyvQ5j4a.bgf +0 -0
  193. {gammonview-3.6.0 → gammonview-3.6.2}/samples/bgf/5nqfGw9bWG3deTaU.bgf +0 -0
  194. {gammonview-3.6.0 → gammonview-3.6.2}/samples/bgf/B4_SrGcsKAQmoTyHlgJCbM.bgf +0 -0
  195. {gammonview-3.6.0 → gammonview-3.6.2}/samples/bgf/C07OQCKyw4Pe-CnjFiAMYO.bgf +0 -0
  196. {gammonview-3.6.0 → gammonview-3.6.2}/samples/bgf/MYdvw1qGuyaRUH__.bgf +0 -0
  197. {gammonview-3.6.0 → gammonview-3.6.2}/samples/bgf/Sz-2PgKnvb6aFls69-qFXg.bgf +0 -0
  198. {gammonview-3.6.0 → gammonview-3.6.2}/samples/bgf/UL-CV6F9jMM-E1Pu.bgf +0 -0
  199. {gammonview-3.6.0 → gammonview-3.6.2}/samples/bgf/XCu3RJ0UvDg_Tldl.bgf +0 -0
  200. {gammonview-3.6.0 → gammonview-3.6.2}/samples/bgf/baR-U643iUDpvzTC.bgf +0 -0
  201. {gammonview-3.6.0 → gammonview-3.6.2}/samples/bgf/eXBNG5wZHS5Alu3P.bgf +0 -0
  202. {gammonview-3.6.0 → gammonview-3.6.2}/samples/bgf/uwvEbd63UvdX7SDin5o_Iw.bgf +0 -0
  203. {gammonview-3.6.0 → gammonview-3.6.2}/samples/gv/3WNK_g1Z-PLsh_HyvQ5j4a.gvab +0 -0
  204. {gammonview-3.6.0 → gammonview-3.6.2}/samples/gv/5nqfGw9bWG3deTaU.gvab +0 -0
  205. {gammonview-3.6.0 → gammonview-3.6.2}/samples/gv/B4_SrGcsKAQmoTyHlgJCbM.gva +0 -0
  206. {gammonview-3.6.0 → gammonview-3.6.2}/samples/gv/B4_SrGcsKAQmoTyHlgJCbM.gvab +0 -0
  207. {gammonview-3.6.0 → gammonview-3.6.2}/samples/gv/C07OQCKyw4Pe-CnjFiAMYO.gvab +0 -0
  208. {gammonview-3.6.0 → gammonview-3.6.2}/samples/gv/MYdvw1qGuyaRUH__.gvab +0 -0
  209. {gammonview-3.6.0 → gammonview-3.6.2}/samples/gv/Sz-2PgKnvb6aFls69-qFXg.gvab +0 -0
  210. {gammonview-3.6.0 → gammonview-3.6.2}/samples/gv/UL-CV6F9jMM-E1Pu.gvab +0 -0
  211. {gammonview-3.6.0 → gammonview-3.6.2}/samples/gv/XCu3RJ0UvDg_Tldl.gvab +0 -0
  212. {gammonview-3.6.0 → gammonview-3.6.2}/samples/gv/baR-U643iUDpvzTC.gvab +0 -0
  213. {gammonview-3.6.0 → gammonview-3.6.2}/samples/gv/eXBNG5wZHS5Alu3P.gvab +0 -0
  214. {gammonview-3.6.0 → gammonview-3.6.2}/samples/gv/uwvEbd63UvdX7SDin5o_Iw.gvab +0 -0
  215. {gammonview-3.6.0 → gammonview-3.6.2}/samples/mat/3WNK_g1Z-PLsh_HyvQ5j4a.mat +0 -0
  216. {gammonview-3.6.0 → gammonview-3.6.2}/samples/mat/5nqfGw9bWG3deTaU.mat +0 -0
  217. {gammonview-3.6.0 → gammonview-3.6.2}/samples/mat/B4_SrGcsKAQmoTyHlgJCbM.mat +0 -0
  218. {gammonview-3.6.0 → gammonview-3.6.2}/samples/mat/C07OQCKyw4Pe-CnjFiAMYO.mat +0 -0
  219. {gammonview-3.6.0 → gammonview-3.6.2}/samples/mat/MYdvw1qGuyaRUH__.mat +0 -0
  220. {gammonview-3.6.0 → gammonview-3.6.2}/samples/mat/Sz-2PgKnvb6aFls69-qFXg.mat +0 -0
  221. {gammonview-3.6.0 → gammonview-3.6.2}/samples/mat/UL-CV6F9jMM-E1Pu.mat +0 -0
  222. {gammonview-3.6.0 → gammonview-3.6.2}/samples/mat/XCu3RJ0UvDg_Tldl.mat +0 -0
  223. {gammonview-3.6.0 → gammonview-3.6.2}/samples/mat/baR-U643iUDpvzTC.mat +0 -0
  224. {gammonview-3.6.0 → gammonview-3.6.2}/samples/mat/eXBNG5wZHS5Alu3P.mat +0 -0
  225. {gammonview-3.6.0 → gammonview-3.6.2}/samples/mat/hQ8sVn2LbTdF4wRm.mat +0 -0
  226. {gammonview-3.6.0 → gammonview-3.6.2}/samples/mat/rK7pXm4TqLb9NzWd.mat +0 -0
  227. {gammonview-3.6.0 → gammonview-3.6.2}/samples/mat/uwvEbd63UvdX7SDin5o_Iw.mat +0 -0
  228. {gammonview-3.6.0 → gammonview-3.6.2}/samples/xg/3WNK_g1Z-PLsh_HyvQ5j4a.xg +0 -0
  229. {gammonview-3.6.0 → gammonview-3.6.2}/samples/xg/5nqfGw9bWG3deTaU.xg +0 -0
  230. {gammonview-3.6.0 → gammonview-3.6.2}/samples/xg/B4_SrGcsKAQmoTyHlgJCbM.xg +0 -0
  231. {gammonview-3.6.0 → gammonview-3.6.2}/samples/xg/C07OQCKyw4Pe-CnjFiAMYO.xg +0 -0
  232. {gammonview-3.6.0 → gammonview-3.6.2}/samples/xg/MYdvw1qGuyaRUH__.xg +0 -0
  233. {gammonview-3.6.0 → gammonview-3.6.2}/samples/xg/Sz-2PgKnvb6aFls69-qFXg.xg +0 -0
  234. {gammonview-3.6.0 → gammonview-3.6.2}/samples/xg/UL-CV6F9jMM-E1Pu.xg +0 -0
  235. {gammonview-3.6.0 → gammonview-3.6.2}/samples/xg/XCu3RJ0UvDg_Tldl.xg +0 -0
  236. {gammonview-3.6.0 → gammonview-3.6.2}/samples/xg/baR-U643iUDpvzTC.xg +0 -0
  237. {gammonview-3.6.0 → gammonview-3.6.2}/samples/xg/eXBNG5wZHS5Alu3P.xg +0 -0
  238. {gammonview-3.6.0 → gammonview-3.6.2}/samples/xg/hQ8sVn2LbTdF4wRm.xg +0 -0
  239. {gammonview-3.6.0 → gammonview-3.6.2}/samples/xg/rK7pXm4TqLb9NzWd.xg +0 -0
  240. {gammonview-3.6.0 → gammonview-3.6.2}/samples/xg/uwvEbd63UvdX7SDin5o_Iw.xg +0 -0
  241. {gammonview-3.6.0 → gammonview-3.6.2}/tests/audit_corpus.py +0 -0
  242. {gammonview-3.6.0 → gammonview-3.6.2}/tests/fixtures.py +0 -0
  243. {gammonview-3.6.0 → gammonview-3.6.2}/tests/gen_js_v2_fixtures.py +0 -0
  244. {gammonview-3.6.0 → gammonview-3.6.2}/tests/gen_ogxm23_fixtures.py +0 -0
  245. {gammonview-3.6.0 → gammonview-3.6.2}/tests/gen_ogxm2_annos_fixtures.py +0 -0
  246. {gammonview-3.6.0 → gammonview-3.6.2}/tests/gen_ogxm2_blocks_fixtures.py +0 -0
  247. {gammonview-3.6.0 → gammonview-3.6.2}/tests/gen_ogxm2_fields_fixtures.py +0 -0
  248. {gammonview-3.6.0 → gammonview-3.6.2}/tests/gen_ogxm2_passthrough_fixtures.py +0 -0
  249. {gammonview-3.6.0 → gammonview-3.6.2}/tests/golden/3WNK_g1Z-PLsh_HyvQ5j4a.fast.gva +0 -0
  250. {gammonview-3.6.0 → gammonview-3.6.2}/tests/golden/3WNK_g1Z-PLsh_HyvQ5j4a.fast.gvab +0 -0
  251. {gammonview-3.6.0 → gammonview-3.6.2}/tests/golden/5nqfGw9bWG3deTaU.fast.gva +0 -0
  252. {gammonview-3.6.0 → gammonview-3.6.2}/tests/golden/5nqfGw9bWG3deTaU.fast.gvab +0 -0
  253. {gammonview-3.6.0 → gammonview-3.6.2}/tests/golden/B4_SrGcsKAQmoTyHlgJCbM.fast.gva +0 -0
  254. {gammonview-3.6.0 → gammonview-3.6.2}/tests/golden/B4_SrGcsKAQmoTyHlgJCbM.fast.gvab +0 -0
  255. {gammonview-3.6.0 → gammonview-3.6.2}/tests/golden/MYdvw1qGuyaRUH__.fast.gva +0 -0
  256. {gammonview-3.6.0 → gammonview-3.6.2}/tests/golden/MYdvw1qGuyaRUH__.fast.gvab +0 -0
  257. {gammonview-3.6.0 → gammonview-3.6.2}/tests/golden/PROVENANCE.json +0 -0
  258. {gammonview-3.6.0 → gammonview-3.6.2}/tests/golden/baR-U643iUDpvzTC.fast.gva +0 -0
  259. {gammonview-3.6.0 → gammonview-3.6.2}/tests/golden/baR-U643iUDpvzTC.fast.gvab +0 -0
  260. {gammonview-3.6.0 → gammonview-3.6.2}/tests/ogxm2_annos_cases.py +0 -0
  261. {gammonview-3.6.0 → gammonview-3.6.2}/tests/ogxm2_blocks_cases.py +0 -0
  262. {gammonview-3.6.0 → gammonview-3.6.2}/tests/ogxm2_fields_cases.py +0 -0
  263. {gammonview-3.6.0 → gammonview-3.6.2}/tests/ogxm2_oracle.py +0 -0
  264. {gammonview-3.6.0 → gammonview-3.6.2}/tests/passthrough_cases.py +0 -0
  265. {gammonview-3.6.0 → gammonview-3.6.2}/tests/regen_golden.py +0 -0
  266. {gammonview-3.6.0 → gammonview-3.6.2}/tests/run_all.py +0 -0
  267. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_alternative_move_steps.py +0 -0
  268. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_analysis_orientation.py +0 -0
  269. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_analyze_position.py +0 -0
  270. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_basefill.py +0 -0
  271. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_bearoff_excess_steps.py +0 -0
  272. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_bgf_alternatives.py +0 -0
  273. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_bgf_cube_response.py +0 -0
  274. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_bgf_move_steps.py +0 -0
  275. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_chunk_passthrough.py +0 -0
  276. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_count_illegal.py +0 -0
  277. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_cube_tiers.py +0 -0
  278. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_docs_presets.py +0 -0
  279. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_equity_loss.py +0 -0
  280. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_gvab_writer.py +0 -0
  281. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_illegal_move.py +0 -0
  282. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_illegal_play_steps.py +0 -0
  283. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_legality.py +0 -0
  284. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_loader_formats.py +0 -0
  285. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_luck_fill.py +0 -0
  286. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_merge_resign.py +0 -0
  287. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_met.py +0 -0
  288. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_money_rules.py +0 -0
  289. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm2.py +0 -0
  290. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm23.py +0 -0
  291. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm2_annos.py +0 -0
  292. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm2_blocks.py +0 -0
  293. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm2_blocks_analysis.py +0 -0
  294. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm2_fields.py +0 -0
  295. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm2_fields_analysis.py +0 -0
  296. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm2_limits.py +0 -0
  297. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm2_passthrough.py +0 -0
  298. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm2_reference.py +0 -0
  299. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm2_writer.py +0 -0
  300. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm_conformance.py +0 -0
  301. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm_export.py +0 -0
  302. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm_pipeline.py +0 -0
  303. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_ogxm_stats.py +0 -0
  304. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_parent_watch.py +0 -0
  305. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_position_id.py +0 -0
  306. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_position_moves.py +0 -0
  307. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_read_gvab.py +0 -0
  308. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_reconstruct_mat.py +0 -0
  309. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_resign_actor.py +0 -0
  310. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_resign_errors.py +0 -0
  311. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_restated_play_analysis.py +0 -0
  312. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_screened_checker.py +0 -0
  313. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_share_link.py +0 -0
  314. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_xg_cube.py +0 -0
  315. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_xg_eval_levels.py +0 -0
  316. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_xg_move_steps.py +0 -0
  317. {gammonview-3.6.0 → gammonview-3.6.2}/tests/test_xg_zero_win_eval.py +0 -0
  318. {gammonview-3.6.0 → gammonview-3.6.2}/uv.lock +0 -0
@@ -13,6 +13,42 @@ when the repository was opened; they are kept because they record why things
13
13
  are the way they are — particularly the breaking changes and the measurements
14
14
  behind several design decisions. Dates are the tag dates.
15
15
 
16
+ ## 3.6.2 — 2026-11-21
17
+
18
+ **An illegal play is flagged wherever it lands** *(fixed)*
19
+
20
+ Analysis noticed an illegal play only on a decision with a real choice of
21
+ moves, by failing to find the played board among the engine's. A forced move
22
+ scored its one legal play as the play made, and a position where every play
23
+ scores the same listed the moves and stopped, so an illegal play on either went
24
+ through as an ordinary one. A `.mat` that recorded a 2-1 as `10/6` in a decided
25
+ bear-off came out unflagged while XG marked it illegal. Legality is now checked
26
+ against the legal moves on every checker decision. As before, an illegal play
27
+ stays out of PR unless `--count-illegal` is given. Files already analysed keep
28
+ their old flags: re-analyse to repair them.
29
+
30
+ **Every double that was made, and every take, counts toward PR** *(fixed)*
31
+
32
+ XG's definition of a decision: "a double that results in a double, and a take,
33
+ are never obvious." A correct double in an optional-double position (error under
34
+ 0.001) went uncounted, and so did a take whose take and pass equities were
35
+ within 0.001: 107 of 1,989 doubles and 3 of 1,170 takes across 522 XG files.
36
+ Counting them adds a decision with no error, so the doubler's PR falls slightly.
37
+ This applies to our own analysis and to the XG and OpenGammon readers in both
38
+ codecs. BGF files keep BGBlitz's own recorded counts. Files already written keep
39
+ their stored flags.
40
+
41
+ ## 3.6.1 — 2026-11-18
42
+
43
+ **`world_class_lite` is renamed `deep_plus`** *(breaking)*
44
+
45
+ The same method, displayed as **Deep+**: `deep` with its errors rolled out. A
46
+ "World Class" name invited comparing its results with `world_class`'s, which is
47
+ what the retired `world_class_fast` was dropped for. `--preset world_class_lite`
48
+ (`wcl`) now fails with a message pointing to `deep_plus` (`dp`), and is not
49
+ aliased, since that would mislabel the analysis. The definition is unchanged, so
50
+ `deep_plus@1` has `world_class_lite@1`'s digest.
51
+
16
52
  ## 3.6.0 — 2026-11-18
17
53
 
18
54
  **A World Class Lite preset** *(added)*
@@ -63,9 +63,15 @@ section.
63
63
  server's details are in the author's local notes, which are not tracked here.)
64
64
  - **`gvengine-js/`** — bgsage compiled to WebAssembly for the browser
65
65
  (`@gammonview/engine`, `private` until gammonview ships it). Its whole promise
66
- is **native bgsage's numbers**: `test/parity.test.mjs` holds every equity to
67
- 5e-6 of `BgBotAnalyzer` on fixtures `scripts/fixtures.py` writes, so a browser
68
- and the Studio cannot disagree about a position. `bgsage.version` pins the
66
+ is **native bgsage's numbers**: `test/parity.test.mjs` holds every cubeful
67
+ equity to 5e-6 of `BgBotAnalyzer` on fixtures `scripts/fixtures.py` writes, so
68
+ a browser and the Studio cannot disagree about a position. A rollout's
69
+ cubeless numbers get 5e-5, and that is not slack to widen: bgsage's
70
+ `pick_best_with_tiebreak` treats plays within `MOVE_TIE_EPSILON` (1e-6) as
71
+ tied and breaks on cubeless equity, so ~1e-7 of arithmetic noise can flip one
72
+ in-trial pick to an equal-cubeful play with other gammon chances (traced
73
+ 2026-11-20: one pick in 360 trials, mean moved 7e-6, cubeful exact). Any
74
+ other drift is a real fault. `bgsage.version` pins the
69
75
  release both halves come from — the C++ from that GitHub tag, the networks
70
76
  from that wheel — and should move with the `[engine]` floor: rebuild,
71
77
  `npm run fixtures`, `npm test`. Needs emscripten to build; the test skips
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: gammonview
3
- Version: 3.6.0
3
+ Version: 3.6.2
4
4
  Summary: Backgammon match analysis — the pure-Python OGXM/GVA codec (`gvformat`) plus bgsage-powered match and position analysis (`gvanalysis`).
5
5
  Project-URL: Homepage, https://github.com/gammonview/gammonview-analysis
6
6
  Project-URL: Repository, https://github.com/gammonview/gammonview-analysis
@@ -53,7 +53,7 @@ to carry what bgsage's analysis produces. This repo reads OGXM; what it writes i
53
53
  that extended form. See [The format](#the-format).
54
54
 
55
55
  It ships as two importable Python packages, plus a JavaScript port of the codec
56
- for the browser:
56
+ and a WebAssembly build of the engine for the browser:
57
57
 
58
58
  - **`gvformat`** — the pure-stdlib codec: read/write the `.gvab` binary, `.gva`
59
59
  JSON conversion, `.xg`/`.bgf` import, compute-on-read stats, OGID. **Zero
@@ -67,6 +67,9 @@ for the browser:
67
67
  flow one way: `gvanalysis` → `gvformat`, never back.
68
68
  - **`@gammonview/gvformat`** — the same codec in JavaScript, on npm. What reads
69
69
  the analysis in the browser. See [In the browser](#in-the-browser).
70
+ - **`gvengine-js/`** — bgsage compiled to WebAssembly, held by its tests to
71
+ native bgsage's numbers, so a position read in a browser and on a server
72
+ agree. Not yet published.
70
73
 
71
74
  ## Install
72
75
 
@@ -170,9 +173,13 @@ than downstream. Python and JavaScript must agree byte-for-byte — the same
170
173
  `.gvab` in gives the same `.gva` JSON out — and the two test suites check that
171
174
  from either side.
172
175
 
173
- There is no JavaScript port of `gvanalysis`. The engine itself does run in a
174
- browser: [`gvengine-js/`](gvengine-js/) is bgsage compiled to WebAssembly, held by
175
- its tests to native bgsage's numbers (not yet published).
176
+ There is no JavaScript port of `gvanalysis`, but the engine itself runs in a
177
+ browser: [`gvengine-js/`](gvengine-js/) is bgsage compiled to WebAssembly, with a
178
+ single-threaded and a threaded build. It covers what match analysis asks of the
179
+ engine — n-ply checker and cube decisions, `checker_eval`'s staged screen, 2T/3T
180
+ rollouts of whole decisions, named plays and single boards, and luck's 21-roll
181
+ sweep — held by parity tests to within 5e-6 of native bgsage's equities. Not yet
182
+ published; its README has the calls and measured costs.
176
183
 
177
184
  ## Command-line tools
178
185
 
@@ -211,7 +218,7 @@ built-ins:
211
218
  | `very_quick` (`vq`) | `2ply` | — | — | Very quick |
212
219
  | `fast` (`f`) | `2ply` | — | `3ply` | Fast |
213
220
  | `deep` (`d`) | `3ply` | — | — | Deep |
214
- | `world_class_lite` (`wcl`) | `3ply` | — | `truncated2` | — (World Class without its middle tier) |
221
+ | `deep_plus` (`dp`) | `3ply` | — | `truncated2` | — (Deep, with errors rolled out) |
215
222
  | `world_class` (`wc`) | `3ply` | `4ply` | `truncated2` | World Class (XG Roller+) |
216
223
 
217
224
  The second pass runs on an **error**; the middle tier runs on a **borderline**
@@ -313,8 +320,8 @@ so it is not part of the MIT grant. Fork the code freely; use your own mark.
313
320
 
314
321
  ### Third-party material
315
322
 
316
- Two pieces of third-party material are incorporated, both permissively licensed.
317
- Their notices must be preserved — see **[THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md)**,
323
+ Three pieces of third-party material are incorporated. Their notices must be
324
+ preserved — see **[THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md)**,
318
325
  which reproduces them in full:
319
326
 
320
327
  - **HedgeHog** (MIT, © 2026 Eran Lambooij) — OGXM is HedgeHog's format. Most of
@@ -328,3 +335,7 @@ which reproduces them in full:
328
335
  `gvformat-js/src/met.js`. It ships with GNU Backgammon but is *not* under its
329
336
  GPL; its own terms require only that the notice be preserved, and it is
330
337
  reproduced at the top of both files.
338
+ - **bgsage** (MPL-2.0, © 2026 Mark Higgins) — compiled into the browser engine
339
+ by `gvengine-js/build.sh`, which also copies its networks and bearoff database
340
+ into `dist/`. `gvengine-js/src/entry.cpp` is a modified bgsage file and stays
341
+ MPL-2.0. None of the build output is committed or in the sdist.
@@ -24,7 +24,7 @@ to carry what bgsage's analysis produces. This repo reads OGXM; what it writes i
24
24
  that extended form. See [The format](#the-format).
25
25
 
26
26
  It ships as two importable Python packages, plus a JavaScript port of the codec
27
- for the browser:
27
+ and a WebAssembly build of the engine for the browser:
28
28
 
29
29
  - **`gvformat`** — the pure-stdlib codec: read/write the `.gvab` binary, `.gva`
30
30
  JSON conversion, `.xg`/`.bgf` import, compute-on-read stats, OGID. **Zero
@@ -38,6 +38,9 @@ for the browser:
38
38
  flow one way: `gvanalysis` → `gvformat`, never back.
39
39
  - **`@gammonview/gvformat`** — the same codec in JavaScript, on npm. What reads
40
40
  the analysis in the browser. See [In the browser](#in-the-browser).
41
+ - **`gvengine-js/`** — bgsage compiled to WebAssembly, held by its tests to
42
+ native bgsage's numbers, so a position read in a browser and on a server
43
+ agree. Not yet published.
41
44
 
42
45
  ## Install
43
46
 
@@ -141,9 +144,13 @@ than downstream. Python and JavaScript must agree byte-for-byte — the same
141
144
  `.gvab` in gives the same `.gva` JSON out — and the two test suites check that
142
145
  from either side.
143
146
 
144
- There is no JavaScript port of `gvanalysis`. The engine itself does run in a
145
- browser: [`gvengine-js/`](gvengine-js/) is bgsage compiled to WebAssembly, held by
146
- its tests to native bgsage's numbers (not yet published).
147
+ There is no JavaScript port of `gvanalysis`, but the engine itself runs in a
148
+ browser: [`gvengine-js/`](gvengine-js/) is bgsage compiled to WebAssembly, with a
149
+ single-threaded and a threaded build. It covers what match analysis asks of the
150
+ engine — n-ply checker and cube decisions, `checker_eval`'s staged screen, 2T/3T
151
+ rollouts of whole decisions, named plays and single boards, and luck's 21-roll
152
+ sweep — held by parity tests to within 5e-6 of native bgsage's equities. Not yet
153
+ published; its README has the calls and measured costs.
147
154
 
148
155
  ## Command-line tools
149
156
 
@@ -182,7 +189,7 @@ built-ins:
182
189
  | `very_quick` (`vq`) | `2ply` | — | — | Very quick |
183
190
  | `fast` (`f`) | `2ply` | — | `3ply` | Fast |
184
191
  | `deep` (`d`) | `3ply` | — | — | Deep |
185
- | `world_class_lite` (`wcl`) | `3ply` | — | `truncated2` | — (World Class without its middle tier) |
192
+ | `deep_plus` (`dp`) | `3ply` | — | `truncated2` | — (Deep, with errors rolled out) |
186
193
  | `world_class` (`wc`) | `3ply` | `4ply` | `truncated2` | World Class (XG Roller+) |
187
194
 
188
195
  The second pass runs on an **error**; the middle tier runs on a **borderline**
@@ -284,8 +291,8 @@ so it is not part of the MIT grant. Fork the code freely; use your own mark.
284
291
 
285
292
  ### Third-party material
286
293
 
287
- Two pieces of third-party material are incorporated, both permissively licensed.
288
- Their notices must be preserved — see **[THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md)**,
294
+ Three pieces of third-party material are incorporated. Their notices must be
295
+ preserved — see **[THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md)**,
289
296
  which reproduces them in full:
290
297
 
291
298
  - **HedgeHog** (MIT, © 2026 Eran Lambooij) — OGXM is HedgeHog's format. Most of
@@ -299,3 +306,7 @@ which reproduces them in full:
299
306
  `gvformat-js/src/met.js`. It ships with GNU Backgammon but is *not* under its
300
307
  GPL; its own terms require only that the notice be preserved, and it is
301
308
  reproduced at the top of both files.
309
+ - **bgsage** (MPL-2.0, © 2026 Mark Higgins) — compiled into the browser engine
310
+ by `gvengine-js/build.sh`, which also copies its networks and bearoff database
311
+ into `dist/`. `gvengine-js/src/entry.cpp` is a modified bgsage file and stays
312
+ MPL-2.0. None of the build output is committed or in the sdist.
@@ -219,15 +219,16 @@ presets judge everything at the first pass.
219
219
  | `very_quick` (`vq`) | `2ply` | — | — | Very quick |
220
220
  | `fast` (`f`) | `2ply` | — | `3ply` | Fast |
221
221
  | `deep` (`d`) | `3ply` | — | — | Deep |
222
- | `world_class_lite` (`wcl`) | `3ply` | — | `truncated2` | — (World Class without its middle tier) |
222
+ | `deep_plus` (`dp`) | `3ply` | — | `truncated2` | — (Deep, with errors rolled out) |
223
223
  | `world_class` (`wc`) | `3ply` | `4ply` | `truncated2` | World Class (XG Roller+) |
224
224
 
225
225
  `fast` is the default.
226
226
 
227
- `world_class_lite` is the same with no middle tier: the 3-ply screen settles every
228
- decision it does not find an error in, and errors are rolled out exactly as in
229
- `world_class`. It exists for GammonView's in-browser engine, where the 4-ply tier
230
- is what does not fit.
227
+ `deep_plus` is `deep` with its errors rolled out -- `world_class` with no middle
228
+ tier: the 3-ply screen settles every decision it does not find an error in, and
229
+ errors are rolled out exactly as in `world_class`. It exists for GammonView's
230
+ in-browser engine, where the 4-ply tier is what does not fit. It was called
231
+ `world_class_lite` in 3.6.0; that name now fails with a message pointing here.
231
232
 
232
233
  `world_class` screens both kinds at 3-ply and deepens a borderline one to 4-ply:
233
234
  a checker play whose top two moves are within 0.08, a cube within 0.12 of its
@@ -68,7 +68,9 @@ error = actual_equity − min(DT, DP)
68
68
  actual = DT if took, else DP
69
69
  ```
70
70
 
71
- A take/pass decision is **not counted** when `|DT − DP| < 0.001` (correct response is ambiguous).
71
+ A take is always counted. A pass is **not counted** when `|DT − DP| < 0.001` (correct response is ambiguous).
72
+
73
+ Both exceptions for actual actions follow XG's definition of a decision: "a double that results in a double, and a take, are never obvious."
72
74
 
73
75
  ### Two-level upgrade path
74
76
 
@@ -526,7 +526,9 @@ def _eval_cube_decision(dec: dict, ctx: _EvalCtx) -> _DecResult:
526
526
  actual_d = min(dt, dp) if doubled else nd
527
527
  doubler_err = max(0.0, optimal - actual_d)
528
528
  trivial = _trivial_cube(nd, dt, dp)
529
- doubler_counts = not (trivial and doubler_err < 0.001)
529
+ # A double that was made always counts (XG: "a double that results in a
530
+ # double is never obvious"); a no-double only if the cube was in question.
531
+ doubler_counts = doubled or not (trivial and doubler_err < 0.001)
530
532
 
531
533
  if doubler_counts:
532
534
  if dec["is_doubler_p1"]:
@@ -584,7 +586,9 @@ def _eval_cube_decision(dec: dict, ctx: _EvalCtx) -> _DecResult:
584
586
 
585
587
  # Responder error (only on double turns with a response)
586
588
  if doubled and dec["response"] is not None:
587
- resp_counts = not _trivial_take_pass(dt, dp)
589
+ # A take always counts (XG: "a take is never obvious"); a pass only
590
+ # if taking was distinguishable from it.
591
+ resp_counts = dec["response"] == "take" or not _trivial_take_pass(dt, dp)
588
592
  resp_err_raw = 0.0
589
593
  if resp_counts:
590
594
  optimal_r = min(dt, dp)
@@ -788,6 +792,60 @@ def _eval_resign_decision(dec: dict, ctx: _EvalCtx) -> _DecResult:
788
792
  return res
789
793
 
790
794
 
795
+ def _score_illegal_play(dec: dict, ctx: _EvalCtx, res: _DecResult, analyzer,
796
+ best_eq: float, eval_level: str, played_notation: str,
797
+ ) -> tuple[float, float, dict] | None:
798
+ """Score a play that is not among the legal ones: its error against
799
+ ``best_eq``, its equity, and the alternative that shows it. Counts it in
800
+ ``res.illegal_moves``, and toward PR only under ``count_illegal``. None if
801
+ the engine cannot evaluate the board it produced."""
802
+ die1, die2 = dec["dice"]
803
+ res.illegal_moves += 1
804
+ if ctx.verbose:
805
+ print(
806
+ f" Warning: played board not found in Sage's move list "
807
+ f"(game {ctx.game['game_number']}, "
808
+ f"turn {dec.get('notation', '?')!r}, "
809
+ f"dice {die1}{die2})"
810
+ )
811
+ try:
812
+ post = analyzer.post_move_analytics(
813
+ dec["board_played"],
814
+ cube_owner=dec["cube_owner"],
815
+ cube_value=dec["cube_value"],
816
+ away1=dec["away1"],
817
+ away2=dec["away2"],
818
+ is_crawford=dec["is_crawford"],
819
+ # bgsage takes no beaver rule here.
820
+ jacoby=ctx.rules(dec)["jacoby"],
821
+ )
822
+ except Exception as e:
823
+ if ctx.verbose:
824
+ print(f" post_move_analytics error (illegal move): {e}")
825
+ return None
826
+ played_eq = float(post.cubeful_equity)
827
+ checker_err = max(0.0, best_eq - played_eq)
828
+ opt: dict = {
829
+ "move": played_notation,
830
+ "equity": round(played_eq, 4),
831
+ "eval_level": ctx.eval_label(eval_level),
832
+ "probs": _probs_list(post.probs),
833
+ "played": True,
834
+ "illegal_move": True,
835
+ }
836
+ mwc = _eq2mwc(played_eq, dec["away1"], dec["away2"], dec["cube_value"], dec["is_crawford"])
837
+ if mwc is not None:
838
+ opt["mwc"] = mwc
839
+ if ctx.count_illegal:
840
+ if dec["is_p1"]:
841
+ res.p1_err += checker_err
842
+ res.p1_dec += 1
843
+ else:
844
+ res.p2_err += checker_err
845
+ res.p2_dec += 1
846
+ return checker_err, played_eq, opt
847
+
848
+
791
849
  def _eval_checker_decision(dec: dict, ctx: _EvalCtx) -> _DecResult:
792
850
  _require_playable(dec, ctx)
793
851
  res = _DecResult()
@@ -801,6 +859,7 @@ def _eval_checker_decision(dec: dict, ctx: _EvalCtx) -> _DecResult:
801
859
  die1, die2))
802
860
  analyzed = False
803
861
  illegal_move = False
862
+ checker_upgraded = False
804
863
  checker_err: float | None = None
805
864
  played_eq: float | None = None
806
865
  best_eq: float | None = None
@@ -822,6 +881,13 @@ def _eval_checker_decision(dec: dict, ctx: _EvalCtx) -> _DecResult:
822
881
  # if a recorded no-play somehow has real moves available, that is a broken
823
882
  # record, not a decision to score, and it is left alone as before.
824
883
  legal = possible_moves(dec["board"], die1, die2)
884
+ # Whether the play is legal is a question about the dice and the board, so
885
+ # it is asked here, once, and not left to each branch below to infer from
886
+ # not finding the played move: a forced move has nothing to search, and an
887
+ # already-decided position never searches. A source can record a play the
888
+ # dice cannot produce (a 2-1 written ``10/6``), and either branch would have
889
+ # shown it as an ordinary play.
890
+ played_legal = tuple(dec["board_played"]) in {tuple(b) for b in legal}
825
891
  if len(legal) == 1:
826
892
  try:
827
893
  cheap = ctx.base_analyzer if ctx.base_analyzer is not None else ctx.analyzer
@@ -844,12 +910,22 @@ def _eval_checker_decision(dec: dict, ctx: _EvalCtx) -> _DecResult:
844
910
  "equity": round(eq, 4),
845
911
  "eval_level": ctx.eval_label(m.eval_level),
846
912
  "probs": _probs_list(m.probs),
847
- "played": True,
848
913
  }
914
+ if played_legal:
915
+ opt["played"] = True
849
916
  mwc = _eq2mwc(eq, dec["away1"], dec["away2"], dec["cube_value"], dec["is_crawford"])
850
917
  if mwc is not None:
851
918
  opt["mwc"] = mwc
852
919
  alternatives = [opt]
920
+ if not played_legal:
921
+ illegal_move = True
922
+ scored = _score_illegal_play(
923
+ dec, ctx, res, cheap, eq, m.eval_level, played_notation)
924
+ if scored is not None:
925
+ checker_err, played_eq, illegal_opt = scored
926
+ best_eq = eq
927
+ analyzed = True
928
+ alternatives.append(illegal_opt)
853
929
  except Exception as e:
854
930
  if ctx.verbose:
855
931
  print(f" checker_play error (forced): {e}")
@@ -1038,50 +1114,13 @@ def _eval_checker_decision(dec: dict, ctx: _EvalCtx) -> _DecResult:
1038
1114
  print(f" post_move_analytics error: {e}")
1039
1115
  if checker_err is None:
1040
1116
  illegal_move = True
1041
- res.illegal_moves += 1
1042
- if ctx.verbose:
1043
- print(
1044
- f" Warning: played board not found in Sage's move list "
1045
- f"(game {ctx.game['game_number']}, "
1046
- f"turn {dec.get('notation', '?')!r}, "
1047
- f"dice {die1}{die2})"
1048
- )
1049
- try:
1050
- post = tier_analyzer.post_move_analytics(
1051
- dec["board_played"],
1052
- cube_owner=dec["cube_owner"],
1053
- cube_value=dec["cube_value"],
1054
- away1=dec["away1"],
1055
- away2=dec["away2"],
1056
- is_crawford=dec["is_crawford"],
1057
- # bgsage takes no beaver rule here.
1058
- jacoby=ctx.rules(dec)["jacoby"],
1059
- )
1060
- played_eq = float(post.cubeful_equity)
1061
- checker_err = max(0.0, best_eq - played_eq)
1117
+ scored = _score_illegal_play(
1118
+ dec, ctx, res, tier_analyzer, best_eq,
1119
+ moves[0].eval_level, played_notation)
1120
+ if scored is not None:
1121
+ checker_err, played_eq, illegal_opt = scored
1062
1122
  analyzed = True
1063
- illegal_opt: dict = {
1064
- "move": played_notation,
1065
- "equity": round(played_eq, 4),
1066
- "eval_level": ctx.eval_label(moves[0].eval_level),
1067
- "probs": _probs_list(post.probs),
1068
- "played": True,
1069
- "illegal_move": True,
1070
- }
1071
- ill_mwc = _eq2mwc(played_eq, dec["away1"], dec["away2"], dec["cube_value"], dec["is_crawford"])
1072
- if ill_mwc is not None:
1073
- illegal_opt["mwc"] = ill_mwc
1074
1123
  alternatives.append(illegal_opt)
1075
- if ctx.count_illegal:
1076
- if dec["is_p1"]:
1077
- res.p1_err += checker_err
1078
- res.p1_dec += 1
1079
- else:
1080
- res.p2_err += checker_err
1081
- res.p2_dec += 1
1082
- except Exception as e:
1083
- if ctx.verbose:
1084
- print(f" post_move_analytics error (illegal move): {e}")
1085
1124
  else:
1086
1125
  analyzed = True
1087
1126
  if dec["is_p1"]:
@@ -1119,6 +1158,16 @@ def _eval_checker_decision(dec: dict, ctx: _EvalCtx) -> _DecResult:
1119
1158
  if is_played:
1120
1159
  opt["played"] = True
1121
1160
  alternatives.append(opt)
1161
+ if not played_legal:
1162
+ illegal_move = True
1163
+ scored = _score_illegal_play(
1164
+ dec, ctx, res, cheap, best_eq_b,
1165
+ cheap_moves[0].eval_level, played_notation)
1166
+ if scored is not None:
1167
+ checker_err, played_eq, illegal_opt = scored
1168
+ best_eq = best_eq_b
1169
+ analyzed = True
1170
+ alternatives.append(illegal_opt)
1122
1171
  except Exception as e:
1123
1172
  if ctx.verbose:
1124
1173
  print(f" checker_play error: {e}")
@@ -139,7 +139,8 @@ _BUILTIN_SPECS: dict[str, dict] = {
139
139
  "close_threshold": {"checker": 0.08, "cube": 0.12},
140
140
  "error_threshold": {"checker": DEFAULT_ERROR_THRESHOLD, "cube": 0.0},
141
141
  "aliases": ["wc", "worldclass"]},
142
- # World Class without its middle tier: the 3-ply screen, and the same 2T
142
+ # Deep with its errors rolled out -- World Class without its middle tier:
143
+ # the 3-ply screen, and the same 2T
143
144
  # rollout on the same errors (checker plays above 0.02, cubes on any wrong
144
145
  # action), with nothing deepened to 4-ply on a near-tie. Defined for the
145
146
  # browser, where the 4-ply tier is what does not fit: it was 49% of
@@ -148,11 +149,12 @@ _BUILTIN_SPECS: dict[str, dict] = {
148
149
  # is world_class@1's, which three matches could not tell apart from @2's.
149
150
  # A method of its own, with a label of its own -- not a cheaper way of
150
151
  # getting world_class's numbers, which is what world_class_fast was
151
- # retired for claiming to be.
152
- "world_class_lite": {"display": "World Class Lite", "revision": 1,
153
- "first_pass": "3ply", "second_pass": "truncated2",
154
- "error_threshold": {"checker": DEFAULT_ERROR_THRESHOLD, "cube": 0.0},
155
- "aliases": ["wcl"]},
152
+ # retired for claiming to be, and so named after deep rather than after
153
+ # world_class: a "World Class" name invites exactly that comparison.
154
+ "deep_plus": {"display": "Deep+", "revision": 1,
155
+ "first_pass": "3ply", "second_pass": "truncated2",
156
+ "error_threshold": {"checker": DEFAULT_ERROR_THRESHOLD, "cube": 0.0},
157
+ "aliases": ["dp"]},
156
158
  # TODO Extensive: needs a full-completion `rollout` second pass plus a tiered
157
159
  # outplay-vs-error escalation trigger, so it is not yet defined.
158
160
  }
@@ -182,6 +184,13 @@ _RETIRED: dict[str, str] = {
182
184
  "you intend to trust, or deep for something genuinely cheap."
183
185
  ),
184
186
  "wcf": "world_class_fast",
187
+ # Not retired but renamed, after one release (3.6.0): the same definition,
188
+ # and so the same digest, as deep_plus@1. Not aliased, for the reason above.
189
+ "world_class_lite": (
190
+ "renamed deep_plus in 3.6.1 -- the same method under a name that does "
191
+ "not read as a cheaper World Class. Use deep_plus."
192
+ ),
193
+ "wcl": "world_class_lite",
185
194
  }
186
195
 
187
196
  #: The definition digest (`Preset.digest`, first 12 hex) of every revision each
@@ -203,7 +212,7 @@ _REVISIONS: dict[str, dict[int, str]] = {
203
212
  "fast": {1: "7030cc90eace", 2: "a44dc6c17c2f"},
204
213
  "deep": {1: "f0d71d4caf31", 2: "062a598d4e7f"},
205
214
  "world_class": {1: "e5b1989b5c6c", 2: "5b8d38df0b0d"},
206
- "world_class_lite": {1: "d82bc491d048"},
215
+ "deep_plus": {1: "d82bc491d048"},
207
216
  }
208
217
 
209
218
  #: What a custom preset's name may be: it is written into the label, so it
@@ -2,9 +2,18 @@
2
2
 
3
3
  bgsage's C++ compiled to WebAssembly, with the networks and bearoff database of
4
4
  the same bgsage release beside it. It gives **native bgsage's numbers**: the
5
- parity test holds every equity to within 5e-6 of `BgBotAnalyzer`, which is what
6
- `gvanalysis` runs on the Studio and in the desktop helper. A position read in a
7
- browser and the same position read anywhere else agree.
5
+ parity test holds every cubeful equity to within 5e-6 of `BgBotAnalyzer`, which
6
+ is what `gvanalysis` runs on the Studio and in the desktop helper. A position
7
+ read in a browser and the same position read anywhere else agree.
8
+
9
+ A rollout's cubeless numbers (its probabilities and cubeless equity) are held to
10
+ 5e-5 instead. Inside each trial bgsage treats plays within 1e-6 of the best
11
+ cubeful value as tied and breaks the tie on cubeless equity, and the ~1e-7 by
12
+ which WASM and native arithmetic differ can put a play on either side of that
13
+ line: a different play of equal cubeful value but different gammon chances.
14
+ Measured, that was one pick in one trial of 360, moving the mean by 7e-6; the
15
+ cubeful equity cannot move, and native x86 and arm64 differ from each other the
16
+ same way.
8
17
 
9
18
  Not published yet (`"private": true`); gammonview is the first consumer.
10
19
 
@@ -14,8 +23,16 @@ Not published yet (`"private": true`); gammonview is the first consumer.
14
23
  |---|---|---|
15
24
  | `checker(pos, {ply})` | every legal play searched at `ply`, cube-aware | BgBotAnalyzer `Nply` |
16
25
  | `checker(pos, {ply, trimmed: true, played})` | every play at 1-ply; up to 16 within 0.20 at 2-ply; up to five of those within 0.08 at `ply`; `played` and the top two always at `ply` | each play's number is exact for its `eval_level` |
26
+ | `checker(pos, {ply, match: true, played})` | match analysis's staged screen, `played` in every stage, groups deepest first | `gvanalysis.checker_eval.checker_play` |
27
+ | `checker(pos, {level: "2T"})`, `"3T"` | the whole decision as the rollout levels read it: a few plays rolled out (`se`), the rest at 2-ply or 1-ply | BgBotAnalyzer `truncated2` / `truncated3` |
17
28
  | `cube(pos, {ply})` | n-ply cube decision | BgBotAnalyzer `Nply` |
18
- | `cube(pos, {level: "2T"})` | 360 trials truncated at 7, 2-ply inside | BgBotAnalyzer `truncated2` |
29
+ | `cube(pos, {level: "2T"})`, `"3T"` | 360 trials truncated at 7, 2-ply (2T) or 3-ply (3T) inside | BgBotAnalyzer `truncated2` / `truncated3` |
30
+ | `rollout(pos, boards, {level})` | up to eight named plays rolled out at 2T or 3T; a bearoff-database board also gets its exact `bearoff` probabilities | `post_move_analytics` at a rollout level — the server's `POST /position/moves` |
31
+ | `post_move(pos, after, {ply})` | one board after a play, at `ply` — for a played board a move list does not hold (an illegal play) | `post_move_analytics` |
32
+ | `post_move(pos, after, {level: "2T"})`, `"3T"` | the same board rolled out, with `se` | `post_move_analytics` at a rollout level |
33
+ | `rolls(pos)` | each of the 21 rolls with its best 1-ply play: luck's sweep, one roll to a thread | `checker()` at 1-ply, first row |
34
+
35
+ Every row but the post-move rollouts is in the parity suite.
19
36
 
20
37
  `ply` is 1–4. Each call takes `threads` (default 1) and `budget_ms` (default ten
21
38
  minutes). The answer is the engine's JSON, in BgBotAnalyzer's analytics shape,
@@ -5,13 +5,14 @@
5
5
 
6
6
  Twelve positions from one seeded game, a third of them at a match score, each
7
7
  read by BgBotAnalyzer at 2ply, 3ply and truncated2 (and a few at truncated3),
8
- plus single plays rolled out as `POST /position/moves` does -- the analyzer gvanalysis
8
+ plus single plays and single boards rolled out -- the analyzer gvanalysis
9
9
  builds, so these are the Studio's and the helper's numbers. Regenerate when
10
10
  bgsage.version moves; the test refuses fixtures from another version.
11
11
  """
12
12
  import importlib.metadata
13
13
  import json
14
14
  import random
15
+ from dataclasses import astuple
15
16
  from pathlib import Path
16
17
 
17
18
  import bgbot_cpp as cpp
@@ -85,16 +86,21 @@ for level in ("2ply", "3ply"):
85
86
  rows.append({"played": played, "moves": [{"board": list(m.board), "equity": m.equity,
86
87
  "cubeless_equity": m.cubeless_equity, "eval_level": m.eval_level} for m in r.moves]})
87
88
  out["match"][level] = rows
88
- # post_move_analytics of a played board, as match analysis sizes an illegal play.
89
+ # post_move_analytics of a played board, as match analysis sizes an illegal play
90
+ # -- at n-ply, and rolled out as a rollout tier does: every position at 2T,
91
+ # the first three at 3T.
89
92
  out["post_move"] = {}
90
- for level in ("2ply", "3ply"):
93
+ for level, n in (("2ply", len(positions)), ("3ply", len(positions)), ("truncated2", len(positions)), ("truncated3", 3)):
91
94
  a = BgBotAnalyzer(eval_level=level)
92
95
  rows = []
93
- for p, plays in zip(positions, out["checker"]["2ply"]):
96
+ for p, plays in zip(positions[:n], out["checker"]["2ply"][:n]):
94
97
  b = plays[-1]["board"]
95
98
  r = a.post_move_analytics(b, cube_owner=p["cube_owner"], cube_value=p["cube_value"], away1=p["away1"],
96
99
  away2=p["away2"], is_crawford=p["is_crawford"], jacoby=p["jacoby"])
97
- rows.append({"board": b, "equity": r.cubeful_equity, "cubeless_equity": r.cubeless_equity})
100
+ row = {"board": b, "equity": r.cubeful_equity, "cubeless_equity": r.cubeless_equity}
101
+ if level.startswith("truncated"):
102
+ row |= {"probs": list(astuple(r.probs)), "se": r.cubeful_se}
103
+ rows.append(row)
98
104
  out["post_move"][level] = rows
99
105
  a = BgBotAnalyzer(eval_level="truncated3")._analyzer
100
106
  out["cube"]["truncated3"] = [{k: r[k] for k in ("equity_nd", "equity_dt", "equity_dp", "should_double", "should_take")}