UNPKG

goban

Version:

[![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/online-go/goban)

26 lines (25 loc) 1.27 kB
import { JGOFNumericPlayerColor, JGOFSealingIntersection, JGOFMove } from "./formats/JGOF"; import { GobanEngineRules } from "./GobanEngine"; interface AutoscoreResults { result: JGOFNumericPlayerColor[][]; sealed_result: JGOFNumericPlayerColor[][]; removed: JGOFMove[]; needs_sealing: JGOFSealingIntersection[]; } export declare function autoscore(board: JGOFNumericPlayerColor[][], rules: GobanEngineRules, black_plays_first_ownership: number[][], white_plays_first_ownership: number[][]): [AutoscoreResults, DebugOutput]; export declare function white(str: string): string; export declare function red(str: string): string; export declare function green(str: string): string; export declare function yellow(str: string): string; export declare function blue(str: string): string; export declare function magenta(str: string): string; export declare function cyan(str: string): string; export declare function black(str: string): string; export declare function whiteBright(str: string): string; export declare function cyanBright(str: string): string; export declare function blackBright(str: string): string; /******************************/ /*** Debug output functions ***/ /******************************/ type DebugOutput = string; export {};