UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

3 lines (2 loc) 205 B
import { RulesCreator } from '../RulesCreator'; export declare function isDeadEndMove<G, M, P>(move: M, game: G, Rules: RulesCreator<G, M, P>, predicate: (game: G) => boolean, maxDepth?: number): boolean;