summaryrefslogtreecommitdiff
path: root/src/engine/getPiece.js
diff options
context:
space:
mode:
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]
+}
+