From b38e831d213735485c5f57df0b6e327bdee02222 Mon Sep 17 00:00:00 2001 From: "Benjamin P. Jones" Date: Wed, 8 Nov 2023 06:29:01 -0800 Subject: [PATCH] Set AUTOSCORE_TOLERANCE to 0.1 and remove min logic. --- src/GoEngine.ts | 2 +- src/GobanCore.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GoEngine.ts b/src/GoEngine.ts index 2bd41b87..a95d76a7 100644 --- a/src/GoEngine.ts +++ b/src/GoEngine.ts @@ -38,7 +38,7 @@ declare const CLIENT: boolean; declare const SERVER: boolean; export const AUTOSCORE_TRIALS = 1000; -export const AUTOSCORE_TOLERANCE = 0.3; +export const AUTOSCORE_TOLERANCE = 0.1; export type GoEnginePhase = "play" | "stone removal" | "finished"; export type GoEngineRules = "chinese" | "aga" | "japanese" | "korean" | "ing" | "nz"; diff --git a/src/GobanCore.ts b/src/GobanCore.ts index 759acfa8..11371dbb 100644 --- a/src/GobanCore.ts +++ b/src/GobanCore.ts @@ -3170,7 +3170,7 @@ export abstract class GobanCore extends EventEmitter { this, this.engine, AUTOSCORE_TRIALS, - Math.min(0.1, AUTOSCORE_TOLERANCE), + AUTOSCORE_TOLERANCE, true, );