blob: f820f975634e6dc652ef81c2d6e59cc7dbcabafd (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import { board } from "../board.js"
export function isMoveLegal({
position,
turn = "none"
}) {
if (board.stones[position.y][position.x] != undefined) {
return false
}
return true
}
|