Included gomill framework for SGF and GTP support, and sketched out SGF game-loading code.

This commit is contained in:
Anna Rose Wiggins 2012-04-21 04:27:05 -04:00
parent 700a6a2f32
commit 692dc294d6
119 changed files with 27458 additions and 3 deletions

View file

@ -0,0 +1,19 @@
"""Fake GTP engine that reports info about cwd and environment.
This is used by gtp_controller_tests.test_subprocess_channel
This mustn't import any gomill or gomill_tests code.
"""
import sys
import os
def main():
sys.stderr.write("subprocess_state_reporter: testing\n")
# Read the GTP command
sys.stdin.readline()
sys.stdout.write("= cwd: %s\nGOMILL_TEST:%s\n\n" %
(os.getcwd(), os.environ.get("GOMILL_TEST")))
if __name__ == "__main__":
main()