Skip to content

Barelydead/oop-chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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