chess-positions-queue-processor
v0.3.0
Published
Process queue of chess positions which needs to be analyzed
Maintainers
Readme
Chess Positions Queue Processor
Process queue of chess positions which needs to be analyzed
Install
npm install chess-positions-queue-processor --saveUsage
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