Skip to content

Commit

Permalink
Don't show move numbers in puzzle mode
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Aug 23, 2024
1 parent 765044e commit 4542b8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "goban-engine",
"version": "8.3.22",
"version": "8.3.23",
"description": "",
"main": "build/goban-engine.js",
"types": "build/engine/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "goban",
"version": "8.3.22",
"version": "8.3.23",
"description": "",
"main": "build/goban.js",
"types": "build/src/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions src/Goban/InteractiveBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,10 @@ export abstract class GobanInteractive extends GobanBase {
}
*/
protected getShowVariationMoveNumbers(): boolean {
if (this.mode === "puzzle") {
return false;
}

if (callbacks.getShowVariationMoveNumbers) {
return callbacks.getShowVariationMoveNumbers();
}
Expand Down

0 comments on commit 4542b8a

Please sign in to comment.