UNPKG

generic-min-max

Version:

This node.js module exports a generic min-max algorithm, alongside some implementations This package comes with full typescript support!

4 lines (3 loc) 199 B
import { BoardGameState, Continuation, Game } from "./types"; declare function minMax<State extends BoardGameState>(game: Game<State>, maxDepth?: number): Continuation<State>; export default minMax;