oop-chess
v2.0.0
Published
A chess engine suited for use on the web
Downloads
3
Readme
Chess game
This is a Oop-style chess engine that can be used as a backend for a web chess game.
Usage
Example code
const Game = require("oop-chess");
Game.init("andersson", "johnsson");
console.log(Game.status());
Game.movePiece("B", 1, "C", 1)
console.log(Game.status());
Game.movePiece("G", 1, "F", 1)
console.log(Game.status());
Game.movePiece("A", 2, "C", 3)
console.log(Game.status());
Install
npm install --save oop-chess