diff options
Diffstat (limited to 'src/engine/moves.js')
-rw-r--r-- | src/engine/moves.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/engine/moves.js b/src/engine/moves.js new file mode 100644 index 0000000..f820f97 --- /dev/null +++ b/src/engine/moves.js @@ -0,0 +1,11 @@ +import { board } from "../board.js" + +export function isMoveLegal({ + position, + turn = "none" +}) { + if (board.stones[position.y][position.x] != undefined) { + return false + } + return true +} |