summaryrefslogtreecommitdiff
path: root/games/exchess/patches/patch-aj
blob: 19296e7918fd622ca74edcc26dd76455d66a086b (plain)
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
41
42
$NetBSD: patch-aj,v 1.1 2004/02/14 04:31:56 kristerw Exp $

--- search.cpp.orig	Sat Feb 14 04:30:46 2004
+++ search.cpp	Sat Feb 14 04:32:41 2004
@@ -181,7 +181,7 @@
   last_depth = 1;
 
   // adjusting hash code for game stage
-  or(p.hcode, stage_code[stage]);
+  hash_or(p.hcode, stage_code[stage]);
 
   // initialize history table
   for(int i = 0; i < 64; i++)
@@ -261,7 +261,7 @@
   }
 
   // adjusting hash code for game stage
-  or(p.hcode, stage_code[stage]);
+  hash_or(p.hcode, stage_code[stage]);
 
   if(!xboard && !ALLEG && post) {
    cout << "\nnode_count = " << node_count
@@ -423,7 +423,7 @@
  if(ply) {
   // add hash code for this position to position list
   p_list[turn+ply-1] = sp[ply].hcode;
-  or(p_list[turn+ply-1], stage_code[stage]);
+  hash_or(p_list[turn+ply-1], stage_code[stage]);
 
   // fifty move rule
   if(sp[ply].fifty >= 100) return(0);
@@ -470,8 +470,8 @@
    {
      node_count++;
      sp[ply+1] = sp[ply]; sp[ply+1].wtm ^= 1;
-     or(sp[ply+1].hcode,wtm);
-     or(sp[ply+1].hcode,btm);
+     hash_or(sp[ply+1].hcode,wtm);
+     hash_or(sp[ply+1].hcode,btm);
      sp[ply+1].last.t = NOMOVE; sp[ply+1].ep = 0;
      sp[ply+1].material = -sp[ply+1].material;
      sp[ply+1].fifty = 0;