@lubert/node-uci-engine
v1.13.2
Published
Library for automating analysis with UCI-compatible chess engines
Downloads
35
Readme
node-uci-engine
Library for automating analysis with UCI-compatible chess engines
Installation
npm install @lubert/node-uci-engine
Usage
const { Engine } = require('@lubert/node-uci-engine');
const engine = new Engine('/path/to/your/engine');
const position = { fen: 'r1bqkb1r/5ppp/p2ppn2/1pn5/3NP3/1BN5/PPP2PPP/R1BQR1K1 w kq - 4 10' };
const config = { depth: 15 };
engine.analyzePosition(
position,
config,
(result) => {
const bestMove = result.getMove();
const analysis = result.getAnalysis();
}
);
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.