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
25 lines (22 loc) • 909 B
JavaScript
// 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');
*/
// The above 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.
/*
Guide to naming conventions used
-------------------------------
GTP : Generic Type Parameter
{T/I}SomeType : Interface or Type (respectively) for class or object structural (not nominal) typing
SomeFunctionFT : Function Type
*/
//# sourceMappingURL=minmax-interface.js.map
;