The following example scripts are available in the gomill_examples/ directory of the Gomill source distribution.
Some of them may be independently useful, as well as illustrating the library API.
See the top of each script for further information.
See running the example scripts for notes on making the gomill package available for use with the example scripts.
Prints an ASCII diagram of the position from an SGF file.
This demonstrates the sgf_reader and ascii_boards modules.
A ‘traditional’ twogtp implementation.
This demonstrates the gtp_games module.
Finds the forfeited games from a playoff competition.
This demonstrates the library interface for querying competition results.
A GTP engine intended for testing GTP controllers.
This demonstrates the low-level engine-side GTP code (the gtp_engine module).
A GTP engine which maintains the board position.
This demonstrates the gtp_states module, which can be used to make a GTP engine from a stateless move-generating program, or to add commands like undo and loadsgf to an engine which doesn’t natively support them.
A GTP engine proxy intended for use with kgsGtp. This produces game records including the engine’s commentary, if the engine supports gomill-savesgf.
This demonstrates the gtp_proxy module, and may be independently useful.