0.3.1 • Published 6 years ago

fen-queue v0.3.1

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
6 years ago

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)
0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago