thaw-reversi-engine
A Node.js Reversi (Othello) game engine with alpha-beta pruning and a heuristic, packaged for npm.
Git Installation Instructions
git clone https://github.com/tom-weatherhead/thaw-reversi-engine.git
cd thaw-reversi-engine
npm install -g grunt
npm install
grunt
npm Installation Instructions
npm install [--save] thaw-reversi-engine
Note: The command "grunt" runs lint and unit tests.
Sample Usage of the npm Package
let engine = ; let boardString = engine;let player = 'X';let maxPly = 5; try let result = engine; console; catch error console;
Output: E.g.
bestRow: 4 bestColumn: 2 bestScore: 3 bestMoves: row: 2 column: 4 row: 3 column: 5 row: 4 column: 2 row: 5 column: 3
License
MIT