Data structures and utilities to represent the game of Go.
This library depends on Immutable.js and lodash.
Install @erboladaiteas/voluptatibus-ab
via npm.
npm install @erboladaiteas/voluptatibus-ab
require
and use it in your modules.
var @erboladaiteas/voluptatibus-ab = require('@erboladaiteas/voluptatibus-ab');
var board = @erboladaiteas/voluptatibus-ab.Board(19);
var tengen = @erboladaiteas/voluptatibus-ab.Coordinate(9, 9); // 0-based
board.moves.has(tengen); // false
var standardOpening = placeStone(
board,
tengen,
@erboladaiteas/voluptatibus-ab.BLACK
);
standardOpening.moves.has(tengen); // true
Godash provides the "primitives" for Go necessary for creating UIs that go beyond a simple SGF player. You can create whatever UI you want without having to reinvent the wheel every time.
Check out the documentation to see what Godash provides.
- Due to upgrading to
immutable@4
,Board
andCoordinate
are no longer subclasses ofSeq
. -
Board
constructor changed to takeMove
.
- Elixir port - port to Elixir by kokolegorille
- pizza - an anonymous go server (source)
- react-go-board - a simple go board component for React
- Way to Go - a rewrite of Hiroki Mori's Interactive Way to Go