This is a resend of a message that seems to have gotten lost in the guts of
the BTS. It's been a week and I haven't seen a bounce or a confirmation. I
did get the original Bcc sent by reportbug...

I wrote, about a week ago:

>Package: bsdgames
>Version: 2.17-1sarge1
>Followup-For: Bug #185100
>
>This patch fixes the problem reported in #185100 by making movallow() try
>again with dice swapped when it finds that there is no possible move with the
>second die after the first die was used to move a man off the bar.
>
>This bug is present in the oldest version of backgammon that I was able to
>find, posted to comp.sources.games in 1988, carrying the version information
>"Last updated on Saturday, January 11, 1986."
>
>For easy reproduction, here's a savegame representing the board in the
>original bug report. Just run "backgammon movallowtest" and try the move
>0-4,23-24 to see the results. One obstacle: the savegame format is not
>portable. It's just an array of ints. So I'm including two versions of
>movallowtest. The first one is 32-bit ints with MSB first. The second one is
>32-bit ints with LSB first.
>
>begin 600 movallowtest
>[EMAIL PROTECTED]@``````````````````````
>M````__________[____]````````````````````````````````````````
>M``(````#````"0````#____Q____\0````D````.`````0````0````!````
>[EMAIL PROTECTED](`````
>`
>end
>
>begin 600 movallowtest
>M`0````````#]_____O___P````#^_____O___P``````````````````````
>M````______[____]____``````````````````````````````````````(`
>M```#````"0````````#Q____\?___PD````.`````0````0````!`````0``
>5`/[EMAIL PROTECTED](`````````
>`
>end
>
>diff -ru bsdgames-2.17.orig/backgammon/common_source/allow.c 
>bsdgames-2.17/backgammon/common_source/allow.c
>--- bsdgames-2.17.orig/backgammon/common_source/allow.c        2003-12-16 
>21:47:37.000000000 -0500
>+++ bsdgames-2.17/backgammon/common_source/allow.c     2006-05-14 
>02:14:29.000000000 -0500
>@@ -83,8 +83,10 @@
>                               p[i--] = bar;
>                               if (p[i] != bar)
>                                       continue;
>-                              else
>+                              else if (d0)
>                                       break;
>+                              swap;
>+                              continue;
>                       }
>                       if (d0 || m == 4)
>                               break;
>
>-- System Information:
>Debian Release: 3.1
>Architecture: powerpc (ppc)
>Kernel: Linux 2.6.11-powerpc
>Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
>
>Versions of packages bsdgames depends on:
>ii  libc6                 2.3.2.ds1-22sarge3 GNU C Library: Shared libraries an
>ii  libgcc1               1:3.4.3-13         GCC support library
>ii  libncurses5           5.4-4              Shared libraries for terminal hand
>ii  libstdc++5            1:3.3.5-13         The GNU Standard C++ Library v3
>ii  wamerican [wordlist]  5-4                American English dictionary words 
>ii  wbritish [wordlist]   5-4                British English dictionary words f
>ii  wenglish              5-4                American English dictionary words 
>
>-- no debconf information
>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to