diff options
author | nil <niljo@airmail.cc> | 2024-12-18 17:53:17 +0100 |
---|---|---|
committer | nil <niljo@airmail.cc> | 2024-12-18 17:53:17 +0100 |
commit | 2303968dc24664d1fb4383d019420e7ddcf06b8a (patch) | |
tree | dfd0193a6cc1178c193ed1c6ccce0c427cf4f0fd /src/engine/getPiece.js | |
parent | 7b005bc02b1e73c71f8cb8f4e03b6fe6ff420c67 (diff) |
Diffstat (limited to 'src/engine/getPiece.js')
-rw-r--r-- | src/engine/getPiece.js | 6 |
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] +} + |