import type { EndgameCount, GameState } from "../types.ts"; /** * How many times the position on the board now has stood there with this side * to move, this time included. * * Exact, not hashed. Walking back from now, each move is added up as a piece * arriving at one square and leaving another; the position before a move is * the position now exactly when every square's arrivals and departures cancel. * Only moves that could be undone are walked — a capture or a man's step can * never be taken back, so nothing before one can be the position now — which * keeps the walk as short as the run of king moves it is looking along. */ export declare function timesRepeated(state: GameState): number; /** * How many turns have been played since the count began, or null when the * position is not inside it now. * * Walked back from now, taking each move's effect off the tallies — a captured * piece returned to its side, a crowning undone — until the position before a * move was outside the count, or, for a count that starts again on any change, * held different pieces from now: that move is the one that began the count, * and every turn after it is counted. */ export declare function turnsInEnding(state: GameState, count: EndgameCount): number | null; /** Whether the game has come to one of the draws its own rules write down. */ export declare function drawnByCheckersRule(state: GameState): boolean; /** Whether the position has now stood as often as the game's repetition rule allows. */ export declare function repeatedTooOften(state: GameState): boolean; /** Whether an ending the game counts has run out of moves without being won. */ export declare function endingRanOut(state: GameState): boolean;