From 16e02376e2273eeb25a6461f84641e96a485f652 Mon Sep 17 00:00:00 2001 From: nil Date: Thu, 12 Dec 2024 18:20:22 +0100 Subject: add legal movements and organize --- src/link.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/link.js') 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 -- cgit v1.2.3