0.4.0 • Published 5 years ago

bestmovedb v0.4.0

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

bestmovedb

Build Status Coverage Status npm version

Database of chess best moves with FEN as a key. Stores FENs in normalized state, removing en passant note if en-passant is not allowed.

Install

npm install bestmovedb --save

Usage

const DB = require('bestmovedb');
const db = new DB();
db.add({fen, bestMove, score, depth});
db.getFen({fen, depth});
const json = db.toJSON();
//...
const db2 = new DB();
db2.load(json); // db2 is in the same state as db now

Specification

bestmovedb spec