pkgsrc/games/sjeng/patches/patch-ab
jlam 661cb67e65 games/sjeng - engine for chess variations (bughouse, suicide, etc.)
Sjeng is an attempt to create a bughouse- and crazyhouse-playing program
that can attain a level comparable to what the best human players are capable
of.  Sjeng also can play standard, suicide, giveaway and losers chess.
2001-10-25 04:42:52 +00:00

36 lines
1 KiB
Text

$NetBSD: patch-ab,v 1.1.1.1 2001/10/25 04:42:52 jlam Exp $
--- book.c.orig Mon Jul 16 08:04:48 2001
+++ book.c
@@ -64,26 +64,31 @@
if (Variant == Normal)
{
if ((f_book = fopen ("normal.opn", "r")) == NULL)
+ if ((f_book = fopen (BOOKDIR "normal.opn", "r")) == NULL)
return FALSE;
}
else if (Variant == Crazyhouse)
{
if ((f_book = fopen ("zh.opn", "r")) == NULL)
+ if ((f_book = fopen (BOOKDIR "zh.opn", "r")) == NULL)
return FALSE;
}
else if (Variant == Suicide)
{
if ((f_book = fopen ("suicide.opn", "r")) == NULL)
+ if ((f_book = fopen (BOOKDIR "suicide.opn", "r")) == NULL)
return FALSE;
}
else if (Variant == Losers)
{
if ((f_book = fopen ("losers.opn", "r")) == NULL)
+ if ((f_book = fopen (BOOKDIR "losers.opn", "r")) == NULL)
return FALSE;
}
else
{
if ((f_book = fopen ("bug.opn", "r")) == NULL)
+ if ((f_book = fopen (BOOKDIR "bug.opn", "r")) == NULL)
return FALSE;
}