diff options
Diffstat (limited to 'games/exchess/patches/patch-aj')
-rw-r--r-- | games/exchess/patches/patch-aj | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/games/exchess/patches/patch-aj b/games/exchess/patches/patch-aj index 1090aaee21b..d2863f04c22 100644 --- a/games/exchess/patches/patch-aj +++ b/games/exchess/patches/patch-aj @@ -1,4 +1,4 @@ -$NetBSD: patch-aj,v 1.2 2011/11/25 21:52:33 joerg Exp $ +$NetBSD: patch-aj,v 1.3 2013/04/30 22:20:58 joerg Exp $ --- search.cpp.orig 2000-04-30 09:56:56.000000000 +0000 +++ search.cpp @@ -23,6 +23,15 @@ $NetBSD: patch-aj,v 1.2 2011/11/25 21:52:33 joerg Exp $ #include "define.h" #include "chess.h" #include "const.h" +@@ -24,7 +27,7 @@ + /*----------------------- Search function ---------------------*/ + // Driver for the search process. 1st initialize important data + // structures, the do iterative deeping until time runs out. +-move search(position p, int time_limit, int T) ++my_move search(position p, int time_limit, int T) + { + char outstring[60], mstring[10]; + int g, done, pvi; @@ -181,7 +184,7 @@ move search(position p, int time_limit, last_depth = 1; @@ -41,6 +50,24 @@ $NetBSD: patch-aj,v 1.2 2011/11/25 21:52:33 joerg Exp $ if(!xboard && !ALLEG && post) { cout << "\nnode_count = " << node_count +@@ -351,7 +354,7 @@ move search(position p, int time_limit, + // It is updated by doing a mem-copy of the principle continuation + // found at deeper depths to this depth + the move at this depth + // is stuffed in first. +-inline void pc_update(move pcmove, int ply) ++inline void pc_update(my_move pcmove, int ply) + { + int pci; + pc[ply][ply].t = pcmove.t; +@@ -395,7 +398,7 @@ int pvs(int alpha, int beta, int depth, + int score, old_depth = depth, mate_ext = 0; + int mcount = 0, first = 1, razor = 0; + int razor_margin, total_pieces; +- move smove, gmove, bmove = nomove; ++ my_move smove, gmove, bmove = nomove; + + #if DEBUG + // Debug archiving of search to a file @@ -423,7 +426,7 @@ outfile << space_string << "->Ply: " << if(ply) { // add hash code for this position to position list |