* Patch from Alan Curry to backgammon to fix a bug that caused the computer

player to skip a turn near the end of the game. Closes: #368771
* Also some tutorial grammar fixes.
* Patch from Alan Curry to backgammon to make 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. Closes: #185100

git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@12456 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2006-05-25 00:40:28 +00:00
parent 964a2d34b2
commit 688fd64b52
5 changed files with 19 additions and 3 deletions

View File

@@ -152,6 +152,9 @@ move(okay)
trymove(0, 0);
pickmove();
if (d0)
swap;
/* print move */
writel(" and moves ");
for (i = 0; i < mvlim; i++) {

View File

@@ -83,8 +83,10 @@ movallow()
p[i--] = bar;
if (p[i] != bar)
continue;
else
else if (d0)
break;
swap;
continue;
}
if (d0 || m == 4)
break;

View File

@@ -94,7 +94,7 @@ const char *const intro2[] = {
"\n Although not indicated on the board, the players' homes are",
"located just to the right of the board. A player's men are placed",
"there when they are removed from the board. The board you just",
"saw was in it's initial position. All games start with the board",
"saw was in its initial position. All games start with the board",
"looking like this. Notice that red's pieces are represented by the",
"letter 'r' and white's pieces are represented by the letter 'w'.",
"Also, a position may have zero or more pieces on it, e.g. posi-",

View File

@@ -65,7 +65,7 @@ const char *const stragy[] = {
"points in a row) are difficult to form, many points nestled close-",
"ly together produce a formidable barrier. Also, while it is good",
"to move back men forward, doing so lessens the opportunity for you",
"to hit men. Finally, remember that once the two player's have",
"to hit men. Finally, remember that once the two players have",
"passed each other on the board, there is no chance of either team",
"being hit, so the game reduces to a race off the board. Addi-",
"tional hints on strategy are presented in the practice game.",

11
debian/changelog vendored
View File

@@ -1,3 +1,14 @@
bsdgames (2.17-8) unstable; urgency=low
* Patch from Alan Curry to backgammon to fix a bug that caused the computer
player to skip a turn near the end of the game. Closes: #368771
* Also some tutorial grammar fixes.
* Patch from Alan Curry to backgammon to make 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. Closes: #185100
-- Joey Hess <joeyh@debian.org> Wed, 24 May 2006 20:23:25 -0400
bsdgames (2.17-7) unstable; urgency=medium
* sail: Fix a scanf buffer overrun in initial broadside prompt code,