summaryrefslogtreecommitdiff
path: root/src/engine/getPiece.js
diff options
context:
space:
mode:
authornil <niljo@airmail.cc>2024-12-18 17:53:17 +0100
committernil <niljo@airmail.cc>2024-12-18 17:53:17 +0100
commit2303968dc24664d1fb4383d019420e7ddcf06b8a (patch)
treedfd0193a6cc1178c193ed1c6ccce0c427cf4f0fd /src/engine/getPiece.js
parent7b005bc02b1e73c71f8cb8f4e03b6fe6ff420c67 (diff)
progressHEADmaster
Diffstat (limited to 'src/engine/getPiece.js')
-rw-r--r--src/engine/getPiece.js6
1 files changed, 6 insertions, 0 deletions
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]
+}
+