Clamshell is a library of Go(lang) functions for the game of go (Aka baduk, weiqi, igo).
For getting started with Clamshell and the technologies we use (Git, Go), check out our Contributing guide.
To run the all the unit tests, run:
go test ./...
This assumes that you have familiarity with and have installed the following:
-
OSX
- We recommend using Homebrew to install any packages you may need.
-
Linux: TODO. Send us a PR with instructions!
-
Windows: TODO. Send us a PR with instructions!
KataGo works with either CUDA or OpenCL. With OpenCL, you can use it without needing a GPU machine.
In addition to the built-binaries, KataGo needs 3 configuration files to run:
- Model: You can get that from the KataGo releases
- GTP Config: You can get that from the KataGo releases
- Tuning Parameters. This is set via running
katago benchmark -tune
.`
- OSX
- OSX generally comes pre-installed with OpenCL
- Run
brew install katago
- Download the models. Brew comes with a models, which you can get with
KATAGO_GTP_CONFIG=$(brew list --verbose katago | grep gtp)
KATAGO_MODEL_PATH= $(brew list --verbose katago | grep .gz | head -1)
- Tune Katago:
katago benchmark -tune -config $(KATAGO_GTP_CONFIG) -model $(KATAGO_MODEL_PATH)
- This will output configuration to
$HOME/.katago
- This will output configuration to
- KataGo should now be operational!
- OSX/Linux
- If you want to try it out with a UI, download
Lizzie and change the engine
command to:
/path/to/katago gtp -config /path/to/config.cfg -model /path/to/model.gz
- I had better luck editing the
config.txt
file that comes with Lizzie directly, rather than trying to set the engine in the Java UI.
- I had better luck editing the
- If you want to try it out with a UI, download
Lizzie and change the engine
command to: