[computer-go] GoGui and python

2007-08-24 Thread Thomas Nelson
Has anyone here tried using GoGui with python? I thought the print statement would send commands well enough, but it doesn't seem to. Here's some very simple code: command = raw_input() print = myName\n Obviously, this is a toy example, but GoGui responds with the program never responded

Re: [computer-go] GoGui and python

2007-08-24 Thread Darren Cook
command = raw_input() print = myName\n Obviously, this is a toy example, but GoGui responds with the program never responded to the name command. If I write out to a file, I can see my response just fine. Have you tried flushing stdout after print? (or setting up stdout to not buffer?). A

Re: [computer-go] GoGui and python

2007-08-24 Thread Adrian Petrescu
Yeah, flushing stdout should be all you need to do to make this work. To do this, import sys sys.stdout.flush() Good luck :) On 8/24/07, Darren Cook [EMAIL PROTECTED] wrote: command = raw_input() print = myName\n Obviously, this is a toy example, but GoGui responds with the program

Re: [computer-go] GoGui and python

2007-08-24 Thread Hellwig Geisse
Thomas, On Fri, 2007-08-24 at 17:26 -0500, Thomas Nelson wrote: command = raw_input() print = myName\n the following is taken directly from the protocol specification: - 2.6 Response Structure If successful, the engine returns a

Re: [computer-go] GoGui and python

2007-08-24 Thread George Dahl
He has two consecutive newlines since print adds one unless the print statement has a comma at the end. - George On 8/24/07, Hellwig Geisse [EMAIL PROTECTED] wrote: Thomas, On Fri, 2007-08-24 at 17:26 -0500, Thomas Nelson wrote: command = raw_input() print = myName\n the following is

Re: [computer-go] GoGui and python

2007-08-24 Thread Hellwig Geisse
On Fri, 2007-08-24 at 19:11 -0400, George Dahl wrote: He has two consecutive newlines since print adds one unless the print statement has a comma at the end. - George Ah, thanks, didn't know that. I suspected this to be the error because the two newlines in responses are in my experience the

[computer-go] Distributed Alpha-Beta Papers?

2007-08-24 Thread Phil G
Can someone recommend a good paper on distributed alpha-beta searching? Not necessarily for Go; I'm just interested in reading up on the subject. Thanks, - Phil___ computer-go mailing list computer-go@computer-go.org

Re: [computer-go] Distributed Alpha-Beta Papers?

2007-08-24 Thread Adrian Petrescu
If you have an ACM subscription, the following should give you some interesting info: R. Finkel, U. Manber. 1987. DIB - A distributed implementation of backtracking. ACM Transactions on Programming Languages and Systems, 9(2):235–256. On 8/25/07, Phil G [EMAIL PROTECTED] wrote: Can someone

Re: [computer-go] Distributed Alpha-Beta Papers?

2007-08-24 Thread Adrian Petrescu
Er, sorry for the double-post, just thought I should mention that you can find the abstract for the paper at this link: http://portal.acm.org/citation.cfm?id=24067coll=portaldl=ACM Or just read it here: DIB is a general-purpose package that allows a wide range of applications such as recursive