純碁ゲームロジックライブラリ
このモジュールは純碁のゲームロジックを実装したライブラリです。 純碁は囲碁の簡素化バージョンで、以下のルールに基づいています:
import { createGame, playMove } from 'jungo-core-lib';// 9路盤でゲームを作成const game = createGame(9);// 黒が(3,3)に着手const result = playMove(game, { type: "play", position: { x: 3, y: 3 } });if (result.success) { console.log('着手成功!');} Copy
import { createGame, playMove } from 'jungo-core-lib';// 9路盤でゲームを作成const game = createGame(9);// 黒が(3,3)に着手const result = playMove(game, { type: "play", position: { x: 3, y: 3 } });if (result.success) { console.log('着手成功!');}
純碁ゲームロジックライブラリ
このモジュールは純碁のゲームロジックを実装したライブラリです。 純碁は囲碁の簡素化バージョンで、以下のルールに基づいています:
Example