chess-positions-queue-processor
v0.3.0
Published
Process queue of chess positions which needs to be analyzed
Downloads
4
Maintainers
Readme
Chess Positions Queue Processor
Process queue of chess positions which needs to be analyzed
Install
npm install chess-positions-queue-processor --save
Usage
const Processor = require('../processor');
const processor = new Processor({queue, evaluation, analyzer});
processor.process(); // call queue.getAllItems and calls for each analyzer.analyze
//...
processor.registerEvaluation({fen, depth, score, bestMove}); // calls evaluation.save and queue.delete for all analyzed enough positions