[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [computer-go] GTP and Tourney in SmartGo 1.4



Just getting it to play using kgsGTP took me at most 4 hours, the tricky part was add an interface in my engine, there was no appropriate procedures to call that produced coordinates. But please not that this code is only supposed to work with kgsGTP and is not a proper implementation.

But I want to return to the pipe-thing. Windows has no simple communication available in the OS as far as I know. You *have* to be a good experienced Windows programmer or spend 10 hours just to enable the communication.

With the knowledge I have now it is very easy, to do the console stdin/out thing or 2 named pipes. 

The reason why 2 named pipes work with kgsgtp is that you add the explicit names of the pipes as a command line parameter to kgsgtp, but I do not think most other implementations do that. If not then I would have to spawn child processes and redirecting in/out pipes and mess around which is sure to be messy as well.

One idea I have is that someone should write a simple console "Adapter" that uses std in/out but then creates 2 named pipes and/or connect to two named pipes and/or provide a socket internet connection.

It is important though, to add a tutorial in how to program the pipes in windows, otherwise it is useless.


--
Magnus Persson
Center for Adaptive Behavior and Cognition


-----Original Message-----
From: Gunnar Farnebäck [mailto:gunnar@xxxxxxxxxxxxxxxxx] 
 
Magnus Persson wrote:
> But my conclusion is that it is easy (if you know how to do it) to use
> GTP together with a program such as kgsGTP. But only with named pipes!

Except for the technicalities of getting pipes to work under Windows,
did you experience any other difficulties in implementing GTP in your
program? Is there any chance you can estimate how much time you needed
for the implementation, besides the pipe stuff?

/Gunnar
_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://computer-go.org/mailman/listinfo/computer-go