8000 GitHub - angeloocana/joj-core: JumpOverJump.com core library · GitHub
[go: up one dir, main page]

Skip to content
angeloocanaPublic

About

JumpOverJump.com core library

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

Important

All code moved to new monorepo at https://github.com/angeloocana/JumpOverJump

joj-core

Build Status NPM codecov.io Dependency Status bitHound Score MIT license

Translations

pt-br en-us

JumpOverJump.com core library

JumpOverJump is an open source, complete functional programming, AI game board.

Be welcome to learn, help and play!!!

Docs

Full docs

Use

Install

    npm install --save joj-core

New Game

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 });

Contribute

NPM Global packages

    npm install -g ts-node babel-cli

Setup

    npm install   

Test

    npm test

About

JumpOverJump.com core library

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0