Important
All code moved to new monorepo at https://github.com/angeloocana/JumpOverJump
JumpOverJump.com core library
JumpOverJump is an open source, complete functional programming, AI game board.
Be welcome to learn, help and play!!!
npm install --save joj-core
import { Game, Move } from 'joj-core';
const players = {
white: { name: "Angelo" },
black: { name: "Gabi" }
};
const game = Game.createGame({ players });
const gameAfterMove = Move.getGameAfterMove(game, { x: 5, y: 7 }, { x: 5, y: 6 });
const gameAfterMove2 = Move.getGameAfterMove(gameAfterMove, { x: 2, y: 0 }, { x: 2, y: 1 });
npm install -g ts-node babel-cli
npm install
npm test