UNPKG

goban-engine

Version:

This contains the built Go engine that is used by the Goban package. There are no display components in this package, only the logic for playing the game of Go, making it suitable for usage in node.js or other server-side environments.

12 lines (11 loc) 482 B
import { StoneString } from "./StoneString"; import { BoardState } from "./BoardState"; import { JGOFNumericPlayerColor } from "./formats/JGOF"; export declare class StoneStringBuilder { private state; readonly stone_string_id_map: number[][]; readonly stone_strings: StoneString[]; constructor(state: BoardState, original_board?: JGOFNumericPlayerColor[][]); foreachGroup(fn: (gr: StoneString) => void): void; getGroup(x: number, y: number): StoneString; }