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.

15 lines (14 loc) 659 B
import { JGOFAIReview, JGOFIntersection, JGOFNumericPlayerColor } from "../formats/JGOF"; import { MoveTree } from "../MoveTree"; export interface AIReviewWorstMoveEntry { player: JGOFNumericPlayerColor; delta: number; move_number: number; move: JGOFIntersection; } /** * Returns a list of the worst moves in the game, as determined by the change in * win rate or score, depending on what is provided in the ai review. So the * first entry will be the worst move in the game according to the ai. */ export declare function getWorstMoves(starting_move: MoveTree, ai_review: JGOFAIReview, max_moves?: number): Array<AIReviewWorstMoveEntry>;