bestmovedb
v0.4.0
Published
database of chess best moves
Downloads
3
Maintainers
Readme
bestmovedb
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