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 • 439 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const STARTING_CHESS_BOARD_STATE = {
player1Turn: true
};
class ChessGame {
constructor(initialState = STARTING_CHESS_BOARD_STATE) {
this.initialState = initialState;
}
getAllNextStates(state) {
return [];
}
getHeuristic(state) {
return 0;
}
}
exports.default = ChessGame;
//# sourceMappingURL=ChessGame.js.map