Included gomill framework for SGF and GTP support, and sketched out SGF game-loading code.
This commit is contained in:
parent
700a6a2f32
commit
692dc294d6
119 changed files with 27458 additions and 3 deletions
19
gomill/gomill_tests/subprocess_state_reporter.py
Normal file
19
gomill/gomill_tests/subprocess_state_reporter.py
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue