fen-queue-processor
v0.5.1
Published
Process and analyzes queue of chess positions in FEN format
Downloads
11
Maintainers
Readme
FEN Queue Processor
Process and analyzes queue of chess positions in FEN format
Install
npm install fen-queue-processor --save
Usage
const Processor = require('fen-queue-processor');
const processor = new Processor({queue, evaluation, analyzer, strategy, evaluationSources});
await processor.process(); // call queue.getAllItems, clarifies with strategy is it interesting for analysis, checks for answer in evaluation sources and calls for interesting not analyzed positions analyzer.analyze
//...
processor.registerEvaluation({fen, depth, score, bestMove}); // calls evaluation.save and queue.delete for all analyzed enough positions