1.0.3 • Published 7 months ago

chess-engine-class v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

This project is a typescript class chess engine.

To use the module :

npm install chess-engine-class

or

yarn add chess-engine-class

The engine will be installed in your project.

Utilisation :

import { Chess } from "chess-engine-class/src/chess";

let game = new Chess();

Index of cells are mades as this :

 A B C D E F G H
7
6
5
4
3
2
1
0

Move piece like this :

let pos = { x: 3, y: 7 };
let piece = game.getBoardCell(pos).currentPiece;
game.movePiece(piece, targetPos);
1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago