fen-queue

0.3.1 • Public • Published

fen-queue

Build Status Coverage Status npm version

FEN queue with priorities

Install

npm install fen-queue --save

Usage

const Queue = require('fen-queue');
const maxPriorities = 4;
const queue = new Queue(maxPriorities);
// or queue = new Queue() with 4 by default
const fen = 'rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w KQkq d6 0 2';
const depth = 50
const priority = 2;
queue.add({fen, depth}, priority);
// or queue.add({fen, depth}) with priority = 0 by default
 
## Specification
[FEN Queue spec](./spec/queue.js)

Package Sidebar

Install

npm i fen-queue

Weekly Downloads

2

Version

0.3.1

License

Apache-2.0

Unpacked Size

26.1 kB

Total Files

8

Last publish

Collaborators

  • scorpibear