diff options
author | nil <niljo@airmail.cc> | 2024-12-12 18:20:22 +0100 |
---|---|---|
committer | nil <niljo@airmail.cc> | 2024-12-12 18:20:22 +0100 |
commit | 16e02376e2273eeb25a6461f84641e96a485f652 (patch) | |
tree | 64a1deee7d8fdfda0a75475642364fc1ba4d8500 /src/link.js | |
parent | 8a49fc718cbfebe593d18dcf37fef2a19f3aa570 (diff) |
add legal movements and organize
Diffstat (limited to 'src/link.js')
-rw-r--r-- | src/link.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/link.js b/src/link.js index 7d10413..e0c8266 100644 --- a/src/link.js +++ b/src/link.js @@ -3,15 +3,14 @@ import { Vector2 } from "./engine/visual/vector2.js" import { board } from "./board.js" import { ASSETS_BLACK, ASSETS_WHITE, PLAYER } from "./constants.js" import { Stone } from "./stone.js" -import { nextTurn, turn } from "./engine/turns.js" - +import { nextTurn, playerTurn } from "./engine/turns.js" export class Link { constructor({ position = new Vector2(0, 0), }) { - this.team = turn + this.team = playerTurn this.position = position this.createSpan() @@ -43,7 +42,7 @@ export class Link { let response = placeOnBoard({ position: this.position, board_size: board.size, - use_real_size: true, + use_link_size: true, }) this.span.style.left = response.left |