From cec1da14708e782801d0cc27fb13ff7586c0e96c Mon Sep 17 00:00:00 2001 From: nil Date: Fri, 13 Dec 2024 16:42:57 +0100 Subject: liberty check demo --- src/link.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/link.js') diff --git a/src/link.js b/src/link.js index e0c8266..192f1e9 100644 --- a/src/link.js +++ b/src/link.js @@ -1,5 +1,5 @@ import { placeOnBoard } from "./engine/visual/placeOnBoard.js" -import { Vector2 } from "./engine/visual/vector2.js" +import { Vector2 } from "./engine/vector2.js" import { board } from "./board.js" import { ASSETS_BLACK, ASSETS_WHITE, PLAYER } from "./constants.js" import { Stone } from "./stone.js" @@ -17,6 +17,7 @@ export class Link { board.links[position.y][position.x] = this this.span.addEventListener("click", _ => { + console.log("link position", this.position) new Stone({ position: position, team: this.team -- cgit v1.2.3