Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deebloo/the-game


https://github.com/deebloo/the-game

Last synced: 15 days ago
JSON representation

Awesome Lists containing this project

README

        

# go-board

Go Board WebComponent. The entire library weights less than 5kb gzip and less than 4k brotli which makes it performant to embed into existing web pages. If you want to see exactly what the board is calculating you can enable debugging by adding the "debug" attribute to go-board. (``)

[Demo](https://go-viewer.web.app?coords&sfx)

[StackBlitz](https://stackblitz.com/edit/go-board-demo?file=index.html)

## All you need to get started is some markup and a script tag

```HTML













```

The go-board element can display a game from a sgf file. You can display a game from [OGS](https://online-go.com).

```html

```

`go-board` can also be used as a form element. It will submit the game key of the current board. This can can be parsed to set the board state manually.
Being form associated also means that you can send data to your own servers without writing any JavaScript.

```html





```

## Attributes

| Item | description |
| -------- | --------------------------------------------------------------------- |
| coords | determines if the column and row lables are displayed |
| src | path to a sgf file. sfg files describe the steps in a game of go |
| debug | enables debug out put. will highlight hitboxes and log out game logic |
| readonly | disables manually placing stones |
| sfx | enable sound effects. Point to a directory with sound files |