oop-chess

2.0.0 • Public • Published

Code Coverage Build Status Scrutinizer Code Quality

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

Readme

Keywords

Package Sidebar

Install

npm i oop-chess

Weekly Downloads

1

Version

2.0.0

License

ISC

Last publish

Collaborators

  • barelydead