From 2303968dc24664d1fb4383d019420e7ddcf06b8a Mon Sep 17 00:00:00 2001 From: nil Date: Wed, 18 Dec 2024 17:53:17 +0100 Subject: progress --- src/engine/getPiece.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/engine/getPiece.js (limited to 'src/engine/getPiece.js') diff --git a/src/engine/getPiece.js b/src/engine/getPiece.js new file mode 100644 index 0000000..ac736cc --- /dev/null +++ b/src/engine/getPiece.js @@ -0,0 +1,6 @@ +import {board} from "../board.js" + +export function getPiece(position) { + return board.stones[position.y][position.x] +} + -- cgit v1.2.3