diff --git a/src/games/killallgo.ts b/src/games/killallgo.ts index 479e1508..9cc64060 100644 --- a/src/games/killallgo.ts +++ b/src/games/killallgo.ts @@ -442,6 +442,7 @@ export class KillAllGoGame extends GameBase { { uid: "#board" }, { uid: "#opening", + fans: true, people: [ { type: "designer", @@ -463,7 +464,7 @@ export class KillAllGoGame extends GameBase { }, ], }, - { uid: "classic", group: "opening", enabledWhen: { board: ["#board"] } }, + { uid: "classic", group: "opening", fans: true, enabledWhen: { board: ["#board"] } }, { uid: "pie", group: "opening", fans: true }, { uid: "hoctaph", diff --git a/test/games/killallgo.test.ts b/test/games/killallgo.test.ts index 772068c6..718ba6df 100644 --- a/test/games/killallgo.test.ts +++ b/test/games/killallgo.test.ts @@ -350,6 +350,16 @@ describe("Kill-All Go", () => { expect(v.unrated, v.uid).to.not.equal(true); } }); + + it("marks every opening, Pieboxing included, as a community variant", () => { + const openings = (KillAllGoGame.gameinfo.variants ?? []).filter((v) => v.group === "opening" || v.uid === "#opening"); + expect(openings.map((v) => v.uid)).to.have.members(["#opening", "handicap", "classic", "pie", "hoctaph"]); + for (const v of openings) { + expect(v.fans, v.uid).to.be.true; + } + const pieboxing = new KillAllGoGame(undefined, []).allvariants()?.find((v) => v.uid === "#opening"); + expect(pieboxing?.fans).to.be.true; + }); }); describe("the setup stone cap", () => {