Skip to content
/ go-lib Public

`go-lib` is a collection of tools for the game of GO.

License

Notifications You must be signed in to change notification settings

beldur/go-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

46b1135 · May 7, 2017

History

19 Commits
May 4, 2017
May 6, 2017
May 7, 2017
May 7, 2017
May 4, 2017
May 3, 2017
May 4, 2017
May 3, 2017
May 3, 2017
Mar 5, 2017
May 4, 2017
May 7, 2017
May 6, 2017
May 7, 2017

Repository files navigation

go-lib

go-lib is a collection of tools for the game of GO. For the moment it only has a React Component for drawing a board with stones :)

build status npm

Installation

$ yarn add go-lib

Usage

Rendering a GO board

import React from 'react'
import ReactDOM from 'react-dom'
import { Board } from 'go-lib/components'

const stones = [
  { coordinate: { x: 16, y: 4 }, color: 'B' },
  { coordinate: { x: 4, y: 16 }, color: 'W' },
]

ReactDOM.render(<Board size={19} positions={stones} />, document.body)

About

`go-lib` is a collection of tools for the game of GO.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published