1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
$NetBSD: patch-aa,v 1.2 2011/11/25 21:52:33 joerg Exp $
--- book.cpp.orig 2000-04-30 09:56:26.000000000 +0000
+++ book.cpp
@@ -12,12 +12,14 @@
#include "const.h"
#include <stdio.h>
#include <string.h>
-#include <iostream.h>
-#include <iomanip.h>
-#include <fstream.h>
+#include <iostream>
+#include <iomanip>
+#include <fstream>
#include <math.h>
#include <time.h>
+using namespace std;
+
/* variables for book learning */
book_rec learn_book[100]; // book learning array
int learn_count = 0; // number of book moves played
@@ -52,7 +54,7 @@ void build_book(position ipos)
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 +247,7 @@ int find_record(position p, move m, int
{
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;
|