[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: computer-go: Perl Module for next move.
Matthew Corey Brown wrote:
> I'm interested in tracking down a perl interface for gomodem and gungo's
> engine/utils.c
>
> I'm interested in giving a function the current board, then getting back
> an array of answers either the resulting borad after dead peices are
> removed or an illeagle move. Perl is needed cause I have a mishmash of
> computer architechures to use Genetic algorythms to develop a neural
> network to determine the best move at that moment. I want to watch the
> computer develop its own stratagems.
>
> and of course i need the gomodem to talk to the servers that will test
> each nerual network against eachother.
You can do this in many ways.
1. There is a protocol in Gnu go that is called GTP, Go Text Protocol
that is intended for exactly these kind of things. If you really
want to use perl, you can run gnugo as a subprocess to the perl
process and talk to the gnugo process using GTP.
2. There is a program that is used to wrap libraries into modules
for a number of script languages, among them perl, python and TCL.
I can't remember the name of it right now, but I am sure somebody
else here on the list can help you, or perhaps you could track it
down yourself. You can use that to wrap Gnu Go into a perl module.
I was thinking of doing this myself later, but I haven't got around
to it yet.
By the way, if you are not a perl fanatic, you might want to try
python instead. Just as easy as writing perl, but much much more
readable afterwards. I once heard python described as "perl the
way god meant it to be", and I can sort of agree with that. Take a
look at http://www.python.org/. It is well invested time to learn
python.
Inge Wallin
Member of the Gnu go team