pyg
pygtp
pypi i pygtp
pyg

pygtp

Python implementation of Go Text Protocol

by James Tauber

0.4 (see all)License:MIT
pypi i pygtp
Readme

gtp

Build Status Coverage Status

Python implementation of Go Text Protocol that can interface with arbitrary game logic implementations (state and move selection), provided that it conforms to the following interface

Game logic interface

clear() : clear the board, scores, and history

make_move(color, vertex) : play a move. color is -1 for white, +1 for black. vertex is a tuple of 1-indexed (x,y) coordinates. This function should return True on success and False on any error

set_size(n) : set the size of the board to n x n. The protocol does not specify what happens to existing stones or history.

set_komi(k) : set komi value to k

get_move(c) : choose a move for color c. Returns a tuple (x,y), where (0,0) indicates a PASS

VersionTagPublished
0.4
6yrs ago
0.3
7yrs ago
0.2
7yrs ago
0.1
7yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate