# oop-chess

> A chess engine suited for use on the web

Latest version **2.0.0** (published 2017-12-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install oop-chess
pnpm add oop-chess
yarn add oop-chess
bun add oop-chess
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-12-29 |
| First published | 2017-12-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Christofer Jungberg |
| Maintainers | barelydead |
| Keywords | chess, game, oop |

## Links

- npm: https://www.npmjs.com/package/oop-chess
- npm.io page: https://npm.io/package/oop-chess

## Recent versions

- 2.0.0 (latest) — 2017-12-29
- 1.0.2 — 2017-12-12
- 1.0.1 — 2017-12-06
- 1.0.0 — 2017-12-06

## README

[![Code Coverage](https://scrutinizer-ci.com/g/Barelydead/oop-chess/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Barelydead/oop-chess/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/Barelydead/oop-chess/badges/build.png?b=master)](https://scrutinizer-ci.com/g/Barelydead/oop-chess/build-status/master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Barelydead/oop-chess/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Barelydead/oop-chess/?branch=master)


Chess game
----------------

This is a Oop-style chess engine that can be used as a backend for a web chess game.

### Usage

#### Example code
```javascript
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`

---
_Source: https://npm.io/package/oop-chess · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
