The GTP Module
Utilities for implementing the go text protocol (GTP)
- class sente.GTP.Session
- Command(self: sente.GTP.Session, arg0: function) function
Decorator function for a private GTP extension
- Parameters
function – function to register
- Returns
the original function
- GenMove(self: sente.GTP.Session, arg0: function) function
Decorator function to implement the
genmovecommand- Parameters
function – function to register
- Returns
the original function
- active(self: sente.GTP.Session) bool
returns whether or not the GTP Session is active
- Return active
whether or not the GTP Session is active
- interpret(self: sente.GTP.Session, arg0: str) str
runs a string through the sente GTP interpreter
- Parameters
command – string containing the GTP command to execute
- Return response
response from the GTP interpreter, neglecting one newline