1.1.2 • Published 6 years ago

torusgo-logic v1.1.2

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

##TorusGo - Game Logic

This Module provides functions to create and manipulate TorusGo game states. The implementation is compiled from purescript.

####Installation

npm install torusgo-logic --save

####Usage const State = require('torusgo-logic').State;

const state = new State(19,19);

state.makeMove(0,0)
    .makeMove(1,1)
    .makeMove(0,1)
    .pass();

console.log(state); //output:
//‌State: { 
//  size: 4x4, 
//  moves: 4, 
//  to move: b, 
//  ko position: - 
//  b prisoners: 0, 
//  w prisoners: 0,
//  board: b,-,-,-,b,w,-,-,-,-,-,-,-,-,-,-
//}
1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago