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!

18 lines 474 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const STARTING_GENERIC_EXAMPLE_STATE = { player1Turn: true }; class GENERIC_EXAMPLE_GAME { constructor(initialState = STARTING_GENERIC_EXAMPLE_STATE) { this.initialState = initialState; } getAllNextStates(state) { return []; } getHeuristic(state) { return 0; } } exports.default = GENERIC_EXAMPLE_GAME; //# sourceMappingURL=GenericExample.js.map