khmer-chess
v1.0.65
Published
KhmerChess Javascript library
Downloads
26
Maintainers
Readme
khmer-chess.js
khmer-chess.js is a Javascript chess library that is used for khmer-chess Ouk-Khmer move generation/validation, piece placement/movement, and check/checkmate/stalemate detection - basically everything but the AI.
Notation KPNG Spec
const input = 'BHGQK2B/4GH2/TFFFFFFF/8/8/5ft1/2qg2b1/bhgk2h1 w ---- -- -.- ffffff';
const kc = new KhmerChess(input);
console.log(kc.drawAscii());
Installing
npm i -D khmer-chess
Importing
import { KhmerChess } from 'khmer-chess';
const { KhmerChess } = require('khmer-chess');
Run
> npm i
> npm start
> npm run start:watch
Build
> npm i
> npm run build
Test and Coverage
> npm run test
> npm run cov