diff options
author | nil <niljo@airmail.cc> | 2024-12-13 16:42:57 +0100 |
---|---|---|
committer | nil <niljo@airmail.cc> | 2024-12-13 16:42:57 +0100 |
commit | cec1da14708e782801d0cc27fb13ff7586c0e96c (patch) | |
tree | ccd80c58e0aba22facb937c88ec5c9957055e4a1 /src/link.js | |
parent | 16e02376e2273eeb25a6461f84641e96a485f652 (diff) |
liberty check demo
Diffstat (limited to 'src/link.js')
-rw-r--r-- | src/link.js | 3 |
1 files changed, 2 insertions, 1 deletions
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 |