UNPKG

minmax-wt-alpha-beta-pruning

Version:

A generic minmax algorithm engine (with alpha-beta pruning) that can work with any game supplied by the user

19 lines (16 loc) 729 B
'use strict'; // The rationale behind using this idiom is described in: // http://stackoverflow.com/a/36628148/274677 // /* not needed in this project: if (!global._babelPolyfill) // https://github.com/s-panferov/awesome-typescript-loader/issues/121 require('babel-polyfill'); // this is important as Babel only transforms syntax (e.g. arrow functions) */ // so you need this in order to support new globals or (in my experience) well-known Symbols, e.g. the following: // // console.log(Object[Symbol.hasInstance]); // // ... will print 'undefined' without the the babel-polyfill being required. var _minmaxImpl = require('./minmax-impl.js'); exports.minmax = _minmaxImpl.minmax; //# sourceMappingURL=index.js.map