Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 1.67 KB

README.pt-br.md

File metadata and controls

63 lines (45 loc) · 1.67 KB

joj-core

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

Traduções

pt-br en-us

JumpOverJump.com core library

JumpOverJump é um jogo open source que usa functional programming e TDD. Seja bem vindo para aprender, ajudar e jogar!!!

Docs

Full docs

Como usar

Instalação

    npm install --save joj-core

Como usar

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

Contribuir com o projeto

NPM Global packages

    npm install -g ts-node babel-cli

Instalação

    npm install   

Teste

    npm test