Class ScoreEstimator

Hierarchy (view full)

Constructors

Properties

amount: number = NaN
autoscore: boolean = false
autoscored_needs_sealing?: JGOFSealingIntersection[]
autoscored_removed?: JGOFMove[]
autoscored_state?: JGOFNumericPlayerColor[][]
black: PlayerScore = ...
black_prisoners: number
board_is_repeating: boolean
color_to_move: "black" | "white"
engine: GobanEngine
estimated_hard_score: number
goban_callback?: GobanBase
height: number = 19
ownership: number[][]
prefer_remote: boolean
removal: boolean[][]
territory: number[][]
tolerance: number
trials: number
when_ready: Promise<void>
white: PlayerScore = ...
white_prisoners: number
width: number = 19
winner: string = ""

Methods

  • Parameters

    • trials: number
    • tolerance: number
    • autoscore: boolean

    Returns Promise<void>

  • Parameters

    • trials: number
    • tolerance: number

    Returns Promise<void>

  • Parameters

    • i: number
    • j: number
    • mod_key: boolean
    • press_duration_ms: number

    Returns void

  • Sets a position as being removed or not removed. If emit_stone_removal_updated is set to false, the "stone-removal.updated" event will not be emitted, and it is up to the caller to emit this event appropriately.

    Parameters

    • x: number
    • y: number
    • removed: boolean

    Returns void

  • Toggles a group of stones for removal or restoration.

    By default, if we are marking a group for removal but the group is almost certainly alive (two eyes, etc), this will result in a no-op, unless force_removal is set to true.

    Parameters

    • x: number
    • y: number
    • force_removal: boolean = false

    Returns {
        group: RawStoneString;
        removed: boolean;
    }

  • Parameters

    • estimated_score: number
    • ownership: number[][]
    • Optional score: number

    Returns void