Re: Display bug in Analyse, Clear Analysis, Move

2024-02-13 Thread Guido Flohr
> But we could also leverage the kind of hacky implementation of message > contexts in GNU gettext. Message contexts were introduced in a manner that > did not require a modification of the format of .mo resp. .gmo files. It was > simply assumed/stipulated that message ids must not contain the c

Re: Display bug in Analyse, Clear Analysis, Move

2024-02-13 Thread Guido Flohr
Hi Philippe, > On 13 Feb 2024, at 23:54, Philippe Michel wrote: > > The NC_() documentation you quote adds that "To get the translated > string, you should call g_dpgettext2() at runtime" but GTK (GTK2 at > least) doesn't do this in gtk_action_group_add_actions(), it uses > g_dgettext(), so t

Re: Display bug in Analyse, Clear Analysis, Move

2024-02-13 Thread Guido Flohr
Hi, it looks like the `_()` Gtk2 macro does some magic under the hood to automatically extract a message context separated by a pipe symbol. I wasn’t aware of that. > Index: gtkgame.c > === > RCS file: /sources/gnubg/gnubg/gtkgame.

Re: Display bug in Analyse, Clear Analysis, Move

2024-02-13 Thread Guido Flohr
Hi, > On 12 Feb 2024, at 18:36, TAKAHASHI Kaoru wrote: > > Hi, > > It seems difficult for GTKTranslate() to handle msgid with context > (e.g. "noun|Move"). > > The following changes might work: > - "noun|Move" -> "Move" (remove context msgid) > - "verb|Move" -> "verb|Move" (unchange) > - "M

Re: Bug-gnubg Digest, Vol 237, Issue 2

2023-11-17 Thread Guido Flohr
Him > On 14 Nov 2023, at 20:42, Frank Berger wrote: > >> >> From: Guido Flohr >>> On 13 Nov 2023, at 21:22, Carsten Wenderdel wrote: >>> >>> In chess there is UCI, an interface understood by virtually all engines, >>> bots and GUIs

Re: Backgammon API

2023-11-13 Thread Guido Flohr
Hi, > On 13 Nov 2023, at 21:22, Carsten Wenderdel wrote: > > In chess there is UCI, an interface understood by virtually all engines, bots > and GUIs. Wouldn’t it be great if we had something similar for backgammon? > Someone could write a new engine or GUI without worrying too much about the

Re: Using GnuBG to test own bot

2023-08-07 Thread Guido Flohr
Hi, On 7 Aug 2023, at 11:48, Daniel Lidström wrote: Hi Is it possible to use GnuBG to test an own implementation of a bot? I’ve been looking for up-to-date info on backgammon programming but haven’t found much. Most sources are old. Where can I find current info? For example, which programs

Re: Best way of converting CVS repo to git ?

2023-01-11 Thread Guido Flohr
Hi, The question is: How is it best to do this? AFAIK, most people use cvs2git which is part of cvs2svn:  https://github.com/mhagger/cvs2svn I think it is pretty stable, well-tested, and well-documented. The $Id$-lines should all be removed because that doe

Re: gnubg: new features

2020-11-25 Thread Guido Flohr
Cool! Thank you very much! > On 25 Nov 2020, at 19:22, Isaac Keslassy wrote: > > We are happy to present three new features of gnubg on which we have been > working quite a lot. We hope you will enjoy them. > > We both find ourselves often wondering how much of the GNUBG eval is due to > the

Re: Help on building GNU BG on Windows 10

2020-10-13 Thread Guido Flohr
Hi, > On 13 Oct 2020, at 5:33, Turker Eflanli wrote: > > By the way, I am not interested in the graphics or board: just want to see > how the engine works. Is there a way to disable the graphics compilation so > that I can generate the gnubg-cli version only? Unfortunately, there is no headle

Re: Bug: Getting dice from random.org for the second time

2020-08-12 Thread Guido Flohr
Hi Peter, > On 12 Aug 2020, at 16:29, Peter Lederer > wrote: > > Hello, > > my Linux Mint is a German version. Thus GNUBG is German as well > ("Voreingestellt"). > > I cannot change the language setting to another language. It says > "Locale 'en_US' not supported by

Re: [Bug-gnubg] Web version of GNU Backgammon

2019-09-25 Thread Guido Flohr
> On 24 Sep 2019, at 23:07, Philippe Michel wrote: > > The current GUI is probably inadequate for a phone or a tablet, but it > would be nice if gnubg would be usable this way (even with some > limitations) on chromebooks or on platforms where building it is > getting complicated (like Macs..

Re: [Bug-gnubg] Mac OSX Mojave

2018-11-13 Thread Guido Flohr
Hi, > On 13 Nov 2018, at 23:36, Philippe Michel wrote: > > On Sat, Nov 10, 2018 at 08:59:57PM -0500, Sydney Burroughs wrote: > >> I just updated my MacBook to Mojave (OS version 10.14.1) and now GNU doesn’t >> open. >> >> Is there a solution available? > > At this time, Mac support for GNUb

Re: [Bug-gnubg] random dice generator? hahahaaa

2017-08-25 Thread Guido Flohr
> > Along these lines, a friend of mine who also works in the gaming industry > said that they often use dice that are generated in something like the > following fashion: The computer internally creates a 36-card deck, each with > one of the 36 possible dice rolls. Then it deals out 18 cards

Re: [Bug-gnubg] re FIBS

2015-06-29 Thread Guido Flohr
brainz. > > I stopped playing on FIBS for some years now due to lack of a Linux client. > One Linux client that is a work in progress is http://savannah.nongnu.org/projects/gibbon/ It is a GTK+ front end for FIBS. The primary developer is Guido Flohr. Gui

Re: [Bug-gnubg] APPLICATION REQUEST

2014-07-07 Thread Guido Flohr
Am Mittwoch, den 02.07.2014, 22:15 +0300 schrieb Kuzey Demir: > I use iPad and iPhone generally to play backgammon. Could you please > establish a App. Store application. Search for "Pocket Backgammon" in the AppStore (or here: https://itunes.apple.com/de/app/pocket-backgammon/id328598451?mt=8).

Re: [Bug-gnubg] How to change the directory where settings saved?

2013-10-29 Thread Guido Flohr
Hi, Am Sonntag, den 27.10.2013, 16:08 -0600 schrieb Michael Petch: > On 2013-10-27 14:21, Philippe Michel wrote: > > The portable version would then be started from a short script that > > determines where it is run from, sets the environment variable > > accordingly and launches the real executab

Re: [Bug-gnubg] Integrated 'Take screenshot' feature? (jpg)

2013-06-07 Thread Guido Flohr
Hi, Am Donnerstag, den 06.06.2013, 18:15 +0100 schrieb Wayne Joseph: > Off the top of my head, it would be nice if it popped up a ‘choose > directory’ dialog and allowed you to automatically save a jpg of the > currently selected move. What's wrong with clicking "Save", and save the current posit

Re: [Bug-gnubg] bug reports and idea

2013-03-11 Thread Guido Flohr
Hi, On Sun, 2013-03-10 at 23:49 +0100, Rasmus Althoff wrote: > Bug/idea: When doing a match analysis, the evaluation of the players > does not match the Gnu BG strength settings. I regularly outplay Gnu BG > in matches at setting "casual", but both I myself and Gnu Backgammon (at > setting "cas

Re: [Bug-gnubg] Translations

2013-03-11 Thread Guido Flohr
On Mon, 2013-03-11 at 16:12 +0100, Philippe Michel wrote: > This can be done with any text editor but it should be easier and less > error prone with a dedicated tool. Moreover, it should be able to create > the binary file that you can copy in gnubg's installation directory to > check your work

Re: [Bug-gnubg] gnu backgammon

2013-02-10 Thread Guido Flohr
Hi, James, thanks for your interest in GNU Backgammon. On Sat, 2013-02-09 at 01:22 +, James wrote: > First of all, I would like to thank you for wonderful program - Gnu > Backgammon. You guys are great! > > I am working on thesis in University on the topic of neural networks in > backgammon.

Re: [Bug-gnubg] Coding Styles - Indentation / Tabs / Spaces

2012-11-04 Thread Guido Flohr
On Sat, 2012-11-03 at 23:06 +0100, Philippe Michel wrote: > On Fri, 26 Oct 2012, Michael Petch wrote: > > Should we consider reformatting all the code at once or module by module > > as we work on them? > > Module by module seems preferable What's wrong with doing it all at once? It will prevent

Re: [Bug-gnubg] Saving edited matches

2012-11-04 Thread Guido Flohr
Hi, On Sat, 2012-11-03 at 13:33 -0600, mpetch wrote: > I'm not at home to look but in theory it should work. I assume you are > saving as a position and that prior to saving you took it out of edit > mode. I won't be able to look at it myself until later in the day. Sorry, it works now. No idea

[Bug-gnubg] Saving edited matches

2012-11-03 Thread Guido Flohr
Hi, I'm trying to save an edited position in GNUBG. When I reload that file, the only thing that gets preserved seems to be the dice. Am I missing something or is that simply not implemented? Guido -- Империя ООД | Imperia OOD ул. „Княз-Борис-I“ № 86, София 1000 | ul. "

Re: [Bug-gnubg] feature request: tuple2string move converter python function (inverse parsemove)

2012-10-25 Thread Guido Flohr
On Thu, 2012-10-25 at 17:40 +0200, bagrat lazaryan wrote: > i'm afraid i rushed a little in offering my solution. it seems it isn't as > trivial a task as it appeared to be at first. as for now, my solution isn't > handling correctly the doubles. (it gave me "13/9 13/5 9/5" on (13, 9, 13, > 9, 9, 5

Re: [Bug-gnubg] Pango error after installing GnuBG

2012-10-04 Thread Guido Flohr
On Thu, 2012-10-04 at 12:43 +0200, Kaslek Sam wrote: > > Hello. > > I installed GnuBG old version stable on a PC with Windows > Millenium, but I can't use it, because when I try to launch it > I > obtain the following window : > > P

Re: [Bug-gnubg] Alternative weights files

2012-09-19 Thread Guido Flohr
On Tue, 2012-09-18 at 07:51 -0400, Thomas A. Moulton wrote: > If you want to run gnubg vs gnubg (old vs new) we could run a test via FIBS. > > It would be a lot slower than machine to machine... I have written a FIBS clone in Perl. It also includes bot software for letting multiple instances of

Re: [Bug-gnubg] SGF Double Analysis Format

2012-08-22 Thread Guido Flohr
On Tue, 2012-08-21 at 20:25 -0400, Ryan McKinnon wrote: > Cube analysis > 2-ply cubeless equity +0.243 (Money: +0.246) > 0.573 0.222 0.024 - 0.427 0.140 0.006 > Cubeful equities: > 1. No double+0.349 > 2. Double, pass +1.000 ( +0.651) > 3. Double, take +0.219 ( -0.

Re: [Bug-gnubg] SGF Double Analysis Format

2012-08-22 Thread Guido Flohr
On Tue, 2012-08-21 at 20:25 -0400, Ryan McKinnon wrote: > I can clearly see that it's a 2ply evaluation, and note the wins, > gammons, backgammons, and opponent's gammons and backgammons. The > item 0.243145 appears to be the cubeless equity, but I'm not sure how > can I can calculate the cubeful

Re: [Bug-gnubg] SGF Double Analysis Format

2012-08-22 Thread Guido Flohr
Hi, On Tue, 2012-08-21 at 20:25 -0400, Ryan McKinnon wrote: > ;B[double]DA[E ver 3 2C 1 0.00 1 0.572881 0.222155 0.024300 > 0.139598 0.006174 0.243145 0.527005 0.572881 0.222155 0.024300 > 0.139598 0.006174 0.243145 0.516940]BM[2] Here are my findings: "E": Evaluation analysis (as opposed to

[Bug-gnubg] Why strip post-Crawford MET?

2012-07-23 Thread Guido Flohr
Hi, when GNUBG extends post-Crawford match equity tables it throws away the last record. At least for the most relevant case of post-Crawford data which is type=explicit and player=both. The rationale is explained in this comment: /* Note that the post Crawford table is extended from

Re: [Bug-gnubg] Extending match equity tables

2012-07-19 Thread Guido Flohr
On Wed, 2012-07-18 at 09:33 +0300, Guido Flohr wrote: > On Tue, 2012-07-17 at 21:56 +0200, Philippe Michel wrote: > > I don't really understand what the code there does, but looking at the way > > it does it, I'd be inclined to let everything related to stddevs unchanged

Re: [Bug-gnubg] Extending match equity tables

2012-07-17 Thread Guido Flohr
On Tue, 2012-07-17 at 21:56 +0200, Philippe Michel wrote: > I don't really understand what the code there does, but looking at the way > it does it, I'd be inclined to let everything related to stddevs unchanged > but increase the 6.0 value (in your case, to 6.0 * sqrt(100/64)). Yes, I tried tha

Re: [Bug-gnubg] Extending match equity tables

2012-07-16 Thread Guido Flohr
On Mon, 2012-07-16 at 13:44 +0300, Guido Flohr wrote: > If I see it correctly, I could solve my problem by extending the series > of standard deviations arStddevTable[]. But where do the numbers come > from? If I extend the series by just one value I have to use 1.97, a value that l

[Bug-gnubg] Extending match equity tables

2012-07-16 Thread Guido Flohr
Hi, I have to extend match equity tables to length 100 and looked at the corresponding code in matchequity.c, function ExtendMET(). There was an assertion that can never fail: g_assert ( 6.0f * rSigma > nScore1 - nScore0 ); nScore1 is always less or equal nScore2, and rSigma is always posit

[Bug-gnubg] Doubling analysis in SGF

2012-07-05 Thread Guido Flohr
Hi, I'm trying to display as much information as possible from what GNUBG writes into the DA property of SGF files. For evaluation results (as opposed to rollout results), the property contains 21 space-separated tokens. Tokens 0-6 describe the analysis settings. The remaining 14 tokens contain

Re: [Bug-gnubg] playing a bot on FIBS

2012-01-24 Thread Guido Flohr
Hi, another option for Mark is to take the Gibbon (www.gibbon.bg) sources and write a little command-line tool that connects to a non-interactive session. Since Gibbon is object-oriented, implementing the communication with FIBS would be a matter of day or two. The other side, the pipe to gnubg i

Re: [Bug-gnubg] playing a bot on FIBS

2012-01-23 Thread Guido Flohr
On Sat, 2012-01-21 at 21:41 -0500, Mark Higgins wrote: > Can anyone point me to some docs on how I can connect my bot to play on FIBS? > I know gnubg did this, but I can't find the code. Check out http://tourneybot.fibs.com/#download You can also find the mail address of the author Tom Moulton a

Re: [Bug-gnubg] Fwd: GNU Backgammon as a web app?

2011-12-22 Thread Guido Flohr
On Mon, 2011-12-19 at 14:32 +, Sam Dutton wrote: > Just wondering if anyone has thought of porting GNU Backgammon as a > web app (that could be used offline) maybe using Chrome's Native > Client? (Full disclosure: I work for Google!) I understand this is not > trivial, given (for a start) the

Re: [Bug-gnubg] Rollout for starting position

2011-09-27 Thread Guido Flohr
On 09/26/2011 04:04 PM, Ian Shaw wrote: > Go to Settings\Rollouts, General Settings Tab. > > Set "Rollout as Initial Position". > > If you are using the command line then "set rollout initial". I did. But then I have to start a match, and I don't get a chance for starting the rollout before the

[Bug-gnubg] Rollout for starting position

2011-09-26 Thread Guido Flohr
Hi, I want to use gnubg to rollout a money game from the starting position, i.e. before the first roll. How can I do that? I tried to pass a position ID to the rollout command in the telnet interface but that causes an error message: (gnubg) help rollout rollout - Have gnubg perform rollout

Re: [Bug-gnubg] SGF questions

2011-04-21 Thread Guido Flohr
Hi, On 04/20/2011 06:36 PM, Philippe Michel wrote: > On Wed, 23 Mar 2011, Guido Flohr wrote: >> Say, the first three rolls are 66, 22, 31. I could do it like this: >> >> ( >> ;GM[6] >> ;DI[66]CV[2] >> ;DI[22]CV[4] >> ;DI[31] >&g

[Bug-gnubg] SGF questions

2011-03-23 Thread Guido Flohr
Hi, I write a client for FIBS, and I want to use SGF as the internal file format. I need a place where I can store some state information. Is it okay to use the MI property for that? And what about namespacing? Should I prefix my private tags or rather write here if I introduce one? I want to a

Re: [Bug-gnubg] Auto Save Settings - your opinion?

2011-03-10 Thread Guido Flohr
Hi, what about simply marking settings that have been changed from their default value? For example, in Glade-3, when you change a widget property, the label for that property is turned into bold. That way you can see immediately the effect of clicking "Apply" or "Okay", and it is safe to to save

Re: [Bug-gnubg] Windows 7 users

2011-01-17 Thread Guido Flohr
On 01/12/2011 09:25 PM, Philippe Michel wrote: > If you use gnubg on a Windows 7 machine, could you take a look at this : > > http://savannah.gnu.org/bugs/?32052 I'm on Linux but I can sort of reproduce it. I think your assumption about HTTP/0.9 vs HTTP/1.1 is right, see below. I can't tell you