import { board } from "../board.js" import { hasLiberties } from "./liberty.js" export function isMoveLegal({ position, team = "none" }) { if (board.stones[position.y][position.x] != undefined) { return false } if (!hasLiberties({position: position, team: team})) { return false } return true }