generic-min-max

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


Keywords
generic-min-max, minmax, minimax, min-max, ai, chess, chess-engine, chess-computer, tictactoe-engine, algorythm
License
MIT
Install
npm install generic-min-max@1.0.3

Documentation

generic-min-max

This node.js module exports a generic min-max algorithm, alongside some implementations

This package comes with full typescript support!

Usage example (ES6/Typescript):

import minMax from "generic-min-max";
import {TicTacToe} from "generic-min-max/implementations";

const ticTacToe = new TicTacToe();
const continuation = minMax(ticTacToe, 9);

console.log('evaluation', continuation.evaluation);
console.log('best continuation', continuation.state);