Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tristancacqueray/baduk-trainer
A purescript binding to gnugo
https://github.com/tristancacqueray/baduk-trainer
Last synced: 14 days ago
JSON representation
A purescript binding to gnugo
- Host: GitHub
- URL: https://github.com/tristancacqueray/baduk-trainer
- Owner: TristanCacqueray
- License: gpl-3.0
- Created: 2020-07-06T23:31:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-17T18:48:31.000Z (3 months ago)
- Last Synced: 2024-10-11T01:49:21.665Z (27 days ago)
- Language: PureScript
- Size: 1.47 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# baduk-trainer
A web application to learn the game of [baduk][baduk] using [gnugo][gnugo].
## Usage
Go to the [website](https://tristancacqueray.github.io/baduk-trainer/) and play the training games.
## Features
- Trainer
- [x] game list
- [x] save state in local storage
- [x] display progressive game list
- [ ] generate new games based on rank
- Editor
- [x] stones
- [x] name, size, komi
- [ ] rank estimator
- Player
- [x] basic captures
- [x] ko
- [ ] property testing## Contribute
### Requirements
- purescript (spago and purs)
- parcel
- [wasm-gnugo](https://github.com/TristanCacqueray/wasm-gnugo/) built in `../wasm-gnugo`### Build
Build the javascript by running:
```
spago build && spago test
```Run the application locally by running:
```
parcel serve src/index.html
ln -s ../../wasm-gnugo/ dist/wasm-gnugo
```### Distribute
```
spago build && rm -Rf dist/ && parcel build --public-url /baduk-trainer/ src/index.html
git checkout pages && git rm src.* && rsync -a dist/ $(pwd)/ && git add src.* && git commit -a --amend -m "Add build" && git push -f origin pages
```[baduk]: https://en.wikipedia.org/wiki/Go_(game)
[gnugo]: https://www.gnu.org/software/gnugo/