From 20c290b744ee802592846b6922d9c942c2b585e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Neto?= <886455+jpneto@users.noreply.github.com> Date: Sun, 28 Jun 2026 17:35:35 +0100 Subject: [PATCH 1/2] Update y.ts --- src/games/y.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/games/y.ts b/src/games/y.ts index 3bf40472..e638d158 100644 --- a/src/games/y.ts +++ b/src/games/y.ts @@ -17,8 +17,8 @@ import i18next from "i18next"; * Add the new class graph to the imports (a class that implements IGraph) * Append this new type to attribute `graph` - * Includes a condition to method `getGraph` returning an object of the new class - * Includes a condition to method `edges` defining the sets of cells for each edge + * Include a condition to method `getGraph` returning an object of the new class + * Include a condition to method `edges` defining the sets of cells for each edge * Update the keys `options` and `board` of rep:APRenderRep in method `render` * Add the new variant at `apgames.json` */ @@ -80,6 +80,7 @@ export class YGame extends GameBase { { uid: "progressive", group: "ruleset" }, // progressive variant with group restriction { uid: "#boardtype", }, // triangular board { uid: "bent", group: "boardtype"}, + { uid: "bent", group: "boardtype" }, ], categories: ["goal>connect", "mechanic>place", "board>shape>tri", "board>connect>hex", "components>simple>1per"], flags: ["pie"], From e625f3ef8dfa2733724234cda6156fabcd6216e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Neto?= <886455+jpneto@users.noreply.github.com> Date: Mon, 6 Jul 2026 22:58:52 +0100 Subject: [PATCH 2/2] Visualization of Crosscontrol and Intemedium --- src/games/crosscontrol.ts | 18 ++++++++---------- src/games/intermedium.ts | 3 ++- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/games/crosscontrol.ts b/src/games/crosscontrol.ts index 77f6bbf8..4a62e42c 100644 --- a/src/games/crosscontrol.ts +++ b/src/games/crosscontrol.ts @@ -656,16 +656,14 @@ export class CrossControlGame extends GameBase { private influenceMarkers(): Map { const markers = new Map([[1, []], [2, []]]); for (const cell of this.listCells() as string[]) { - if (!this.board.has(cell)) { - const cellController = this.cellController(cell); - if (cellController === undefined) continue; - const [x, y] = this.getGraph().algebraic2coords(cell); - const cellCoords = {row: y, col: x}; - if (cellController === 1) { - markers.get(1)!.push(cellCoords); - } else { - markers.get(2)!.push(cellCoords); - } + const cellController = this.cellController(cell); + if (cellController === undefined) continue; + const [x, y] = this.getGraph().algebraic2coords(cell); + const cellCoords = {row: y, col: x}; + if (cellController === 1) { + markers.get(1)!.push(cellCoords); + } else { + markers.get(2)!.push(cellCoords); } } return markers; diff --git a/src/games/intermedium.ts b/src/games/intermedium.ts index b4ce36ec..5a4d9d05 100644 --- a/src/games/intermedium.ts +++ b/src/games/intermedium.ts @@ -577,7 +577,8 @@ export class IntermediumGame extends GameBase { style: "squares", width: BOARD_COLS, height: BOARD_ROWS, - markers + markers, + strokeOpacity: 0 }, legend: { A: [{ name: "piece", colour: 1 }],