[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [computer-go] GTP and Tourney in SmartGo 1.4
Gunnar wrote:
> Don wrote:
> > PIPES do not get you to another computer, but a remote shell does.
> >
> > Unix was designed specifically to make it easy to use tools together
> > in a natural way. That's what I'm talking about. You can use either
> > rsh or ssh to do this and it's on virtually every unix system.
>
> Yes, as long as the programs can talk on stdio, other forms of
> connections can generally be arranged. So, why not try to do it over
> TCP?
>
> Computer 1, controller
> koeberg.lysator.liu.se% ./twogtp.pike -w 'tcplisten 5678' -b 'tcplisten 5679'
>
> Computer 2, engine playing white
> sulitelma:~/gnugo/gnugo-3.4/interface> mkfifo /tmp/fifo
> sulitelma:~/gnugo/gnugo-3.4/interface> ./gnugo --quiet --mode gtp < /tmp/fifo | tcpconnect koeberg.lysator.liu.se 5678 > /tmp/fifo
>
> Computer 3, engine playing black
> gunnar@virihaure:~/gnugo/savannah/gnugo/interface$ mkfifo /tmp/fifo
> gunnar@virihaure:~/gnugo/savannah/gnugo/interface$ ./gnugo --quiet --mode gtp < /tmp/fifo | tcpconnect koeberg.lysator.liu.se 5679 > /tmp/fifo
>
> Worked just fine. Game record at the end.
>
> [...]
This is what I really love about UNIX-like systems. Tools can be combined
to achieve functionality that none of the tools could provide alone. In
Windows, every single program has to implement nearly everything on its own.
No wonder command-line interface is well alive despite all the GUI around.
Terminal is about the first program I start after logging in :)
Paul
_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://computer-go.org/mailman/listinfo/computer-go