facebookresearch / darkforestGo

DarkForest, the Facebook Go engine.
Other
2.1k stars 324 forks source link

GTP Compliant IO by redirecting all Debug, Info messages to STDERR. #4

Closed aniljava closed 8 years ago

aniljava commented 8 years ago

Replaced printf with fprintf to stderr and print to io.stderr:write in lua files so that the script is GTP Compliant and can be used by clients like gogui. Replacement is only made to files associated with cnnPlayerMCTSV2.lua.

ghost commented 8 years ago

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

ghost commented 8 years ago

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!