純碁 (Pure Go) Library - v0.2.0
    Preparing search index...

    Type Alias Move

    Move:
        | { position: Position; type: "play" }
        | { type: "pass" }
        | { type: "resign" }

    手を表す型

    囲碁の手には、石を置く(play)、パス(pass)、投了(resign)の3種類があります。

    const playMove: Move = { type: "play", position: { x: 3, y: 3 } };
    const passMove: Move = { type: "pass" };
    const resignMove: Move = { type: "resign" };