gocaml
is a lightweight go engine
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 dataGocaml.Game_logic.move
- The type used to submit moves to the engineGocaml.Game_logic.get_liberties board point
- Returns a list of liberties around the given pointGocaml.Game_logic.assert_legality board move
- Determine if a move is illegal, and whyGocaml.Game_logic.place board move
- Places a piece on the board, does check for legality and will remove captured pieces
- game_logic.ml - The main engine code
- board.ml - Game board definitions
- main.ml - Driver code
I depended on wikibooks as my primary source of literature on Computer Go