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

RE: computer-go: Perl Module for next move.



The program that makes it easy to wrap libraries
is called swig, and you can get it from:

	http://www.swig.org/

I too recommend python as a programming/scripting
language.  It is very powerful, easy to write *and*
read, and is easy to connect to external libraries.

Cheers,

Carl

_________________________________________________
[(hp)]	Carl Staelin
	Senior Research Scientist
	Hewlett-Packard Laboratories
	Technion City
	Haifa, 32000
	ISRAEL
	+972(4)823-1237x221	+972(4)822-0407 fax
	staelin@xxxxxxxxxxxxxxxxx
_______http://www.hpl.hp.com/personal/Carl_Staelin_______


> -----Original Message-----
> From: Inge Wallin [mailto:inge@xxxxxxxxxxxxxxxxx]
> Sent: Sunday, June 03, 2001 1:30 PM
> To: computer-go@xxxxxxxxxxxxxxxxx
> Cc: computer-go@xxxxxxxxxxxxxxxxx
> Subject: 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
>