bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Fwd: Can GNUBG be integrated with java for analysis?Plea


From: Michael Petch
Subject: Re: [Bug-gnubg] Fwd: Can GNUBG be integrated with java for analysis?Please Help Me!
Date: Mon, 12 Dec 2005 12:16:35 -0700
User-agent: Microsoft-Entourage/11.2.1.051004

Howdy,

Although the least efficient, but easiest mechanism to start with is to
utilize Java streams and the java Runtime/Process class to execute Gnubg
executable and redirect all std input/output/error . Since you don't need
the GUI I recommend building the command line version of gnubg (nogui).
Using this method you can issue commands to gnubg to setup the position to
analyze and have your java application parse the responses and act
accordingly.

The second alternative (And this is quite a bit more involved) is to attempt
to build the Analysis engine as shared object (DLL) and then utilize JNI
(Java Native Interface)/"C code"/Java wrappers to make calls to the analysis
engine. I don't know the specifics but I think (and someone else may be able
to help you out) there was something in the CVS tree to build a *windows*
DLL that could be used for analysis purposes (DLL's of course will only work
on windows). In theory it should not be difficult to take that concept and
build shared object (.so) for Unix/Linux platforms.

The second method would theoretically require less system resources, but is
a lot more complicated to do. Depending on your application the first method
may be easiest to start with.

Mike 

On 12/12/05 5:59 AM, "Joern Thyssen" <address@hidden> wrote:

> ----- Forwarded message from nnprasad2000 <address@hidden> -----
> 
> Subject: Can GNUBG be integrated with java for analysis?Please Help Me!
> Date: Sat, 10 Dec 2005 21:05:49 +0530
> X-URL: http://indiatimes.com
> 
> 
> 
> 
> Hi Joern,
> 
> 
> This is Prasad from India, Thanks for the free software revolution.
> 
> Now I would like to know How to utilize the GNU Backgammon¹s analysis feature
> 
> With my backgammon JAVA program.
> 
> 
> 
> Can this possible to ingrate GNU BG with JAVA. If possible please suggest me
> on achieving this.
> 
> 
> Thanking you in anticipation
> 
> NNPrasad
> 
> 
> Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
> 
>  Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com
> 
> Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to
> http://airsahara.indiatimes.com and Bid Now!
> 
> ----- End forwarded message -----
> _______________________________________________
> Bug-gnubg mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-gnubg






reply via email to

[Prev in Thread] Current Thread [Next in Thread]