generic-min-max
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

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);

Package Sidebar

Install

npm i generic-min-max

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

21.1 kB

Total Files

30

Last publish

Collaborators

  • royhadad