summaryrefslogtreecommitdiff
path: root/games/exchess/patches
diff options
context:
space:
mode:
Diffstat (limited to 'games/exchess/patches')
-rw-r--r--games/exchess/patches/patch-aa22
-rw-r--r--games/exchess/patches/patch-ab13
-rw-r--r--games/exchess/patches/patch-ac35
-rw-r--r--games/exchess/patches/patch-ad39
-rw-r--r--games/exchess/patches/patch-ae22
5 files changed, 131 insertions, 0 deletions
diff --git a/games/exchess/patches/patch-aa b/games/exchess/patches/patch-aa
new file mode 100644
index 00000000000..54aee032b5f
--- /dev/null
+++ b/games/exchess/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/10/25 08:40:00 jlam Exp $
+
+--- book.cpp.orig Sun Apr 30 09:56:26 2000
++++ book.cpp
+@@ -52,7 +52,7 @@
+ char outbook[100];
+ position temp_pos; // temporary position
+ move bmove; // book move under consideration
+- unsigned __int64 pcode; // hash code for position
++ u_int64_t pcode; // hash code for position
+ int i = -1, j = 0, k = 0, p; // loop variables
+ int count = 0, thresh, LINE_DEPTH; // control variables
+
+@@ -245,7 +245,7 @@
+ {
+ file_pos = 0;
+ int jump = int(file_size/2);
+- unsigned __int64 pcode = ZERO;
++ u_int64_t pcode = ZERO;
+
+ temporary_pos = p;
+ if(!exec_move(&temporary_pos, m, 1)) return 0;
diff --git a/games/exchess/patches/patch-ab b/games/exchess/patches/patch-ab
new file mode 100644
index 00000000000..03a4dd1f356
--- /dev/null
+++ b/games/exchess/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/10/25 08:40:00 jlam Exp $
+
+--- chess.h.orig Sat Feb 19 11:28:46 2000
++++ chess.h
+@@ -86,7 +86,7 @@
+ // Structure for position in the opening book
+
+ struct book_rec {
+- unsigned __int64 pos_code; // position hash code
++ u_int64_t pos_code; // position hash code
+ int score; // score for position
+ int gambit; // flag for gambit play
+ };
diff --git a/games/exchess/patches/patch-ac b/games/exchess/patches/patch-ac
new file mode 100644
index 00000000000..aaa1ef6f38e
--- /dev/null
+++ b/games/exchess/patches/patch-ac
@@ -0,0 +1,35 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/10/25 08:40:00 jlam Exp $
+
+--- define.h.orig Sun Apr 30 10:02:28 2000
++++ define.h
+@@ -4,25 +4,26 @@
+ #ifndef DEFINE_H
+ #define DEFINE_H
+
++#include <inttypes.h>
++
+ #define VERS 3.14 // program version number
+ #define MAXD 60 // max search depth
+ #define MATE 10000000 // mate score
+
+ // Compiler flags for different systems
+-#define BORLAND 1 // Selects a win95/NT compiler if set to 1
++#define BORLAND 0 // Selects a win95/NT compiler if set to 1
+ // this should work with MSVC and others as
+ // well
+ #define DEC 0 // Set to 1 for certain DEC Unix systems, not
+ // all will need it - some other unixes may
+ // need this if there are errors in "book.cpp"
+-#define UNIX 0 // Set to 1 for all Unix systems
++#define UNIX 1 // Set to 1 for all Unix systems
+ #define DOS 0 // Set to 1 for Auto232 DOS mode
+ #define DEBUG 0 // Set to 1 to debug mode... quite slow
+
+ // define 64 bit integers
+ #if !BORLAND
+- #define __int64 long long
+- #define ZERO 0ULL
++ #define ZERO 0
+ #else
+ #define ZERO 0ui64
+ #endif
diff --git a/games/exchess/patches/patch-ad b/games/exchess/patches/patch-ad
new file mode 100644
index 00000000000..c5b4672d1ea
--- /dev/null
+++ b/games/exchess/patches/patch-ad
@@ -0,0 +1,39 @@
+$NetBSD: patch-ad,v 1.1.1.1 2000/10/25 08:40:00 jlam Exp $
+
+--- main.cpp.orig Sat Apr 1 07:46:20 2000
++++ main.cpp
+@@ -17,6 +17,7 @@
+ #if UNIX
+ #include <sys/types.h>
+ #include <sys/time.h>
++ #include <unistd.h>
+ #else
+ #include <windows.h>
+ #include <time.h>
+@@ -56,7 +57,7 @@
+ extern int ponder, last_ponder, learn_count, learned;
+ extern unsigned long TAB_SIZE, PAWN_SIZE;
+
+-// executable directory
++// exchess opening book and search parameters directory
+ char exec_path[100];
+
+ // performance function
+@@ -93,16 +94,7 @@
+ learn_count = 0; learned = 0; learn_bk = 1; shout_book = 0;
+
+
+- strcpy(exec_path, argv[0]);
+- // parsing exec path
+- int last_slash = 0;
+- for(int j = 0; j < 100; j++) {
+- if(exec_path[j] == '\0') break;
+- if(exec_path[j] == '\\') last_slash = j;
+- if(exec_path[j] == '/') last_slash = j;
+- }
+-
+- exec_path[last_slash+1] = '\0';
++ strcpy(exec_path, EXCHESS_DIR);
+
+ /* initializing hash tables, check tables, scoring parameters,
+ and the random number seed and tablebases */
diff --git a/games/exchess/patches/patch-ae b/games/exchess/patches/patch-ae
new file mode 100644
index 00000000000..25b4ab71e2f
--- /dev/null
+++ b/games/exchess/patches/patch-ae
@@ -0,0 +1,22 @@
+$NetBSD: patch-ae,v 1.1.1.1 2000/10/25 08:40:00 jlam Exp $
+
+--- search.par.in.orig Sun Apr 30 09:59:16 2000
++++ search.par.in
+@@ -20,7 +20,7 @@
+
+ # Endgame Tablebases - if you have them installed
+
+-EGTB_PATH c:\projects\exchess\tb
++EGTB_PATH @PREFIX@/share/egtb
+ EGTB_CACHE_SIZE 2.0 # Tablebase cache size in megabytes
+
+ # Log File
+@@ -32,7 +32,7 @@
+
+ GAMBIT_SCORE 80 # Maximum gambit allowed
+ BOOK_FILE open_bk.dat # Name of the opening book file
+-BOOK_LEARNING 1 # Set to 0 for no book learning
++BOOK_LEARNING 0 # Set to 0 for no book learning
+
+ # Search Extensions
+ #