From 334b4697432750ff2774f0bfe2e3712f3da1d765 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Mon, 17 Jun 2024 07:31:36 -0600 Subject: [PATCH] Fixed analysis scores not being visible after a game was over --- src/Goban/CanvasRenderer.ts | 10 ++++++++-- src/Goban/SVGRenderer.ts | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/Goban/CanvasRenderer.ts b/src/Goban/CanvasRenderer.ts index bfd98075..ab29b42d 100644 --- a/src/Goban/CanvasRenderer.ts +++ b/src/Goban/CanvasRenderer.ts @@ -1776,7 +1776,10 @@ export class GobanCanvas extends Goban implements GobanCanvasInterface { /* Draw Scores */ { if ( - (pos.score && (this.engine.phase !== "finished" || this.mode === "play")) || + (pos.score && + (this.engine.phase !== "finished" || + this.mode === "play" || + this.mode === "analyze")) || (this.scoring_mode && this.score_estimator && (this.score_estimator.territory[j][i] || @@ -2459,7 +2462,10 @@ export class GobanCanvas extends Goban implements GobanCanvasInterface { /* Draw Scores */ { if ( - (pos.score && (this.engine.phase !== "finished" || this.mode === "play")) || + (pos.score && + (this.engine.phase !== "finished" || + this.mode === "play" || + this.mode === "analyze")) || (this.scoring_mode && this.score_estimator && (this.score_estimator.territory[j][i] || diff --git a/src/Goban/SVGRenderer.ts b/src/Goban/SVGRenderer.ts index 8bdb6b2d..db37e60e 100644 --- a/src/Goban/SVGRenderer.ts +++ b/src/Goban/SVGRenderer.ts @@ -1698,7 +1698,10 @@ export class SVGRenderer extends Goban implements GobanSVGInterface { /* Draw Scores */ { if ( - (pos.score && (this.engine.phase !== "finished" || this.mode === "play")) || + (pos.score && + (this.engine.phase !== "finished" || + this.mode === "play" || + this.mode === "analyze")) || (this.scoring_mode && this.score_estimator && (this.score_estimator.territory[j][i] || @@ -2412,7 +2415,10 @@ export class SVGRenderer extends Goban implements GobanSVGInterface { /* Draw Scores */ { if ( - (pos.score && (this.engine.phase !== "finished" || this.mode === "play")) || + (pos.score && + (this.engine.phase !== "finished" || + this.mode === "play" || + this.mode === "analyze")) || (this.scoring_mode && this.score_estimator && (this.score_estimator.territory[j][i] ||