Skip to content

jared-nishikawa/clamshell

 
 

Repository files navigation

Clamshell

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.

Testing

To run the all the unit tests, run:

go test ./...

Setting up a Dev Environment

This assumes that you have familiarity with and have installed the following:

  1. Go(lang)
  2. Git
  3. Docker. In particular, Docker Desktop.

Inital OS Setup

  • 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!

Installing KataGo

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:

  1. Model: You can get that from the KataGo releases
  2. GTP Config: You can get that from the KataGo releases
  3. 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
    • KataGo should now be operational!

Using KataGo via UI

  • 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.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 72.3%
  • HCL 14.7%
  • Shell 11.5%
  • Dockerfile 1.5%