Skip to content

Commit

Permalink
Set AUTOSCORE_TOLERANCE to 0.1 and remove min logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpjones committed Nov 8, 2023
1 parent b06cf7a commit b38e831
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/GoEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/GobanCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3170,7 +3170,7 @@ export abstract class GobanCore extends EventEmitter<Events> {
this,
this.engine,
AUTOSCORE_TRIALS,
Math.min(0.1, AUTOSCORE_TOLERANCE),
AUTOSCORE_TOLERANCE,
true,
);

Expand Down

0 comments on commit b38e831

Please sign in to comment.