generic-min-max
Version:
This node.js module exports a generic min-max algorithm, alongside some implementations This package comes with full typescript support!
12 lines (11 loc) • 475 B
TypeScript
import { BoardGameState, Game } from "../types";
interface GenericExampleState extends BoardGameState {
}
declare class GENERIC_EXAMPLE_GAME implements Game<GenericExampleState> {
constructor(initialState?: GenericExampleState);
getAllNextStates(state: GenericExampleState): Array<GenericExampleState>;
getHeuristic(state: GenericExampleState): number;
initialState: GenericExampleState;
}
export default GENERIC_EXAMPLE_GAME;
export { GenericExampleState };