@lubert/node-uci-engine
TypeScript icon, indicating that this package has built-in type declarations

1.13.1 • Public • Published

node-uci-engine

Library for automating analysis with UCI-compatible chess engines

npm Build Status

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.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @lubert/node-uci-engine

Weekly Downloads

35

Version

1.13.1

License

MIT

Unpacked Size

1.69 MB

Total Files

90

Last publish

Collaborators

  • lubert