Moteur : chances de gagner le match (table de gnubg), export SGF d'un match entier

Commande mwc d'engine-cli et engine_match_chances_of : chances au score
(getMEAtScore) et conversion d'une équité (eq2mwc), comparées à gnubg de
bureau. Export d'un match entier en SGF, relu par gnubg (load match).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pierre MARTIN
2026-11-12 23:55:51 +01:00
co-authored by Claude Opus 5.5
parent ee661661fd
commit f9b8663afb
21 changed files with 596 additions and 8 deletions
+5
View File
@@ -72,6 +72,11 @@ function fakeEngine(overrides: Partial<Engine> = {}): Engine {
crawford: score[winner] === match.length - 1,
};
},
matchChances: async (_cube, equity) => ({
atScore: 0.5,
ofEquity: 0.5 + equity / 4,
ofLoss: equity / 4,
}),
analyseMove: async () => null,
analyseCube: async () => ({
analysed: false,