Skip to content

lubert/node-uci-engine

Repository files navigation

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

About

Library for automating analysis with UCI-compatible chess engines

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •