CharlesAverill / gocaml

A Go engine for OCaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gocaml

gocaml is a lightweight go engine

Usage

Requires Dune

If you'd like to play a game:

make run

If you'd like to use the API:

  • Gocaml.Board.board - The data structure for representing board data
  • Gocaml.Game_logic.move - The type used to submit moves to the engine
  • Gocaml.Game_logic.get_liberties board point - Returns a list of liberties around the given point
  • Gocaml.Game_logic.assert_legality board move - Determine if a move is illegal, and why
  • Gocaml.Game_logic.place board move - Places a piece on the board, does check for legality and will remove captured pieces

Navigation

Credits

I depended on wikibooks as my primary source of literature on Computer Go

About

A Go engine for OCaml

License:MIT License


Languages

Language:OCaml 85.1%Language:Makefile 14.9%