Skip to content

Commit

Permalink
Fixed analysis scores not being visible after a game was over
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Jun 17, 2024
1 parent b6ee1a7 commit 334b469
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/Goban/CanvasRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] ||
Expand Down Expand Up @@ -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] ||
Expand Down
10 changes: 8 additions & 2 deletions src/Goban/SVGRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] ||
Expand Down Expand Up @@ -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] ||
Expand Down

0 comments on commit 334b469

Please sign in to comment.