Domaine et adaptateur : niveaux, analyses et chance ; cache vidé à chaque calcul

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pierre MARTIN
2026-11-03 14:59:07 +01:00
co-authored by Claude Opus 5.5
parent 2f6eb86972
commit 23f4d47fcf
9 changed files with 476 additions and 4 deletions
+10
View File
@@ -49,6 +49,16 @@ function fakeEngine(overrides: Partial<Engine> = {}): Engine {
return { valid: false, complete: false, position: null };
},
board: async () => notOver,
levelMove: async () => move,
levelCubeDecision: async () => noDouble,
analyseMove: async () => null,
analyseCube: async () => ({
analysed: false,
equities: null,
equityLoss: 0,
skill: "none",
}),
luck: async () => ({ value: 0, rating: "none" }),
...overrides,
};
}