godash
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

npm Build Status

Data structures and utilities to represent the game of Go.

This library depends on Immutable.js and lodash.

Getting Started

Install godash via npm.

npm install godash

require and use it in your modules.

var godash = require('godash');
var board = godash.Board(19);
var tengen = godash.Coordinate(9, 9); // 0-based

board.moves.has(tengen); // false

var standardOpening = placeStone(
    board,
    tengen,
    godash.BLACK
);
standardOpening.moves.has(tengen); // true

Why Godash?

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.

Breaking changes from version 1 to 2

Related Projects

/godash/

    Package Sidebar

    Install

    npm i godash

    Weekly Downloads

    71

    Version

    2.2.0

    License

    ISC

    Unpacked Size

    653 kB

    Total Files

    27

    Last publish

    Collaborators

    • duckpunch