This project is a typescript class chess engine.
npm install chess-engine-class
yarn add chess-engine-class
The engine will be installed in your project.
import { Chess } from "chess-engine-class/src/chess";
let game = new Chess();
A B C D E F G H
7
6
5
4
3
2
1
0
let pos = { x: 3, y: 7 };
let piece = game.getBoardCell(pos).currentPiece;
game.movePiece(piece, targetPos);