手を表す型
囲碁の手には、石を置く(play)、パス(pass)、投了(resign)の3種類があります。
const playMove: Move = { type: "play", position: { x: 3, y: 3 } };const passMove: Move = { type: "pass" };const resignMove: Move = { type: "resign" }; Copy
const playMove: Move = { type: "play", position: { x: 3, y: 3 } };const passMove: Move = { type: "pass" };const resignMove: Move = { type: "resign" };
手を表す型
囲碁の手には、石を置く(play)、パス(pass)、投了(resign)の3種類があります。