bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Re: compiling gnubg for windows (fwd)


From: Joern Thyssen
Subject: Re: [Bug-gnubg] Re: compiling gnubg for windows (fwd)
Date: Sun, 21 Jul 2002 10:08:08 +0000
User-agent: Mutt/1.2.5.1i

On Sun, Jul 21, 2002 at 10:33:13AM +0000, Øystein Johansen wrote
> On Sun, Jul 21, 2002 at 09:42:47AM +0200, address@hidden wrote:
[snip]
> > You mentioned there is 1/2 finished code for dumping equity loss at every
> > decision for plotting. I wouldn't mind having a look and see if I can hack
> > something. CAn you give me some hints where this code is?
> 
> This is Jørn's code. The code is probably local on his machine.

In gnubg.c at line 459 there is a "#if 0" and a corresponding #endif.
Remove these, and download jth.freeshell.org/export.c. Add export.c to
the makefile (or add it to Makefile.am and run "automake; ./configure").
This will give you a new command "export equityevolution game
<filename>".

I'm not sure the code is near it's final form. The problem is that the
internal move structure (struct _moverecord) does have a field "current
equity". It has to be calculated from the stored analysis, e.g., by
taking the equity after the best move or the equity after "double,
take". 

Let me know if you start working on it, so we don't do any duplicate
work.

> 
> Suggestion:
> Use native gdk and gtk to make the plot or use gtk-extra libraries.
> If we now start using guppi there will be some code (GTKSHowMET)
> based on gtk-extra, and some other code based on guppi. Sounds silly.
> ..ok... yes we could make some #ifdefs ... guppi might not be bad
> after all, but avoid gnuplot.

The idea was just to dump the equities (and luck) in comma or tab
separated form so it could be imported into your favourite plot program.

Of course, it's also possible to make a GTK widget to show the plot
natively.

BTW, Kees, you can subscribe to the mailing list at
http://mail.gnu.org/mailman/listinfo/bug-gnubg. 

Jørn

-- 
Joern Thyssen, PhD
Vendsysselgade 3, 3., DK-9000 Aalborg, Denmark
+45 9813 2791 (private) / +45 2077 2689 (mobile) / +45 9633 7036 (work)



reply via email to

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