head 1.4; access; symbols pkgsrc-2014Q2:1.3.0.10 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.8 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.6 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.4 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.2 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.2.0.12 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.10 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.8 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.6 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.4 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.2 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.1.1.1.0.76 pkgsrc-2011Q3-base:1.1.1.1 pkgsrc-2011Q2:1.1.1.1.0.74 pkgsrc-2011Q2-base:1.1.1.1 pkgsrc-2011Q1:1.1.1.1.0.72 pkgsrc-2011Q1-base:1.1.1.1 pkgsrc-2010Q4:1.1.1.1.0.70 pkgsrc-2010Q4-base:1.1.1.1 pkgsrc-2010Q3:1.1.1.1.0.68 pkgsrc-2010Q3-base:1.1.1.1 pkgsrc-2010Q2:1.1.1.1.0.66 pkgsrc-2010Q2-base:1.1.1.1 pkgsrc-2010Q1:1.1.1.1.0.64 pkgsrc-2010Q1-base:1.1.1.1 pkgsrc-2009Q4:1.1.1.1.0.62 pkgsrc-2009Q4-base:1.1.1.1 pkgsrc-2009Q3:1.1.1.1.0.60 pkgsrc-2009Q3-base:1.1.1.1 pkgsrc-2009Q2:1.1.1.1.0.58 pkgsrc-2009Q2-base:1.1.1.1 pkgsrc-2009Q1:1.1.1.1.0.56 pkgsrc-2009Q1-base:1.1.1.1 pkgsrc-2008Q4:1.1.1.1.0.54 pkgsrc-2008Q4-base:1.1.1.1 pkgsrc-2008Q3:1.1.1.1.0.52 pkgsrc-2008Q3-base:1.1.1.1 cube-native-xorg:1.1.1.1.0.50 cube-native-xorg-base:1.1.1.1 pkgsrc-2008Q2:1.1.1.1.0.48 pkgsrc-2008Q2-base:1.1.1.1 cwrapper:1.1.1.1.0.46 pkgsrc-2008Q1:1.1.1.1.0.44 pkgsrc-2008Q1-base:1.1.1.1 pkgsrc-2007Q4:1.1.1.1.0.42 pkgsrc-2007Q4-base:1.1.1.1 pkgsrc-2007Q3:1.1.1.1.0.40 pkgsrc-2007Q3-base:1.1.1.1 pkgsrc-2007Q2:1.1.1.1.0.38 pkgsrc-2007Q2-base:1.1.1.1 pkgsrc-2007Q1:1.1.1.1.0.36 pkgsrc-2007Q1-base:1.1.1.1 pkgsrc-2006Q4:1.1.1.1.0.34 pkgsrc-2006Q4-base:1.1.1.1 pkgsrc-2006Q3:1.1.1.1.0.32 pkgsrc-2006Q3-base:1.1.1.1 pkgsrc-2006Q2:1.1.1.1.0.30 pkgsrc-2006Q2-base:1.1.1.1 pkgsrc-2006Q1:1.1.1.1.0.28 pkgsrc-2006Q1-base:1.1.1.1 pkgsrc-2005Q4:1.1.1.1.0.26 pkgsrc-2005Q4-base:1.1.1.1 pkgsrc-2005Q3:1.1.1.1.0.24 pkgsrc-2005Q3-base:1.1.1.1 pkgsrc-2005Q2:1.1.1.1.0.22 pkgsrc-2005Q2-base:1.1.1.1 pkgsrc-2005Q1:1.1.1.1.0.20 pkgsrc-2005Q1-base:1.1.1.1 pkgsrc-2004Q4:1.1.1.1.0.18 pkgsrc-2004Q4-base:1.1.1.1 pkgsrc-2004Q3:1.1.1.1.0.16 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-2004Q2:1.1.1.1.0.14 pkgsrc-2004Q2-base:1.1.1.1 pkgsrc-2004Q1:1.1.1.1.0.12 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-2003Q4:1.1.1.1.0.10 pkgsrc-2003Q4-base:1.1.1.1 netbsd-1-6-1:1.1.1.1.0.6 netbsd-1-6-1-base:1.1.1.1 netbsd-1-6:1.1.1.1.0.8 netbsd-1-6-RELEASE-base:1.1.1.1 pkgviews:1.1.1.1.0.4 pkgviews-base:1.1.1.1 buildlink2:1.1.1.1.0.2 buildlink2-base:1.1.1.1 netbsd-1-5-PATCH003:1.1.1.1 netbsd-1-5-PATCH001:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.4 date 2014.09.11.16.59.16; author jperkin; state dead; branches; next 1.3; commitid b7OUQ9vL3mT5TWPx; 1.3 date 2013.04.30.22.20.58; author joerg; state Exp; branches; next 1.2; 1.2 date 2011.11.25.21.52.33; author joerg; state Exp; branches; next 1.1; 1.1 date 2000.10.25.08.40.00; author jlam; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.10.25.08.40.00; author jlam; state Exp; branches; next ; desc @@ 1.4 log @Update games/exchess to v7.31beta, this package's first update in 14 years. The primary motivator for the upgrade is to improve the book generation time, which is now several times faster (builds were failing with CPU ulimit of 1 hour on 3GHz Xeon E5's with the previous version). This new version even supports multiple cores, though that isn't enabled at this time. There appear to have been many other updates, but there is no ChangeLog and there aren't even any intermediate versions for download (hence using the current beta version). Upstream unfortunately makes it as difficult as possible to see the history of this package. @ text @$NetBSD: patch-aa,v 1.3 2013/04/30 22:20:58 joerg Exp $ --- book.cpp.orig 2000-04-30 09:56:26.000000000 +0000 +++ book.cpp @@@@ -12,12 +12,14 @@@@ #include "const.h" #include #include -#include -#include -#include +#include +#include +#include #include #include +using namespace std; + /* variables for book learning */ book_rec learn_book[100]; // book learning array int learn_count = 0; // number of book moves played @@@@ -51,8 +53,8 @@@@ void build_book(position ipos) char instring[100], line[100]; // strings from input files char outbook[100]; position temp_pos; // temporary position - move bmove; // book move under consideration - unsigned __int64 pcode; // hash code for position + my_move bmove; // book move under consideration + 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 @@@@ -241,11 +243,11 @@@@ book_rec book_record; // working reco position temporary_pos; // working position /* Function to find a position in the book */ -int find_record(position p, move m, int file_size) +int find_record(position p, my_move m, int file_size) { 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; @@@@ -299,13 +301,13 @@@@ int find_record(position p, move m, int // position is in the book. If so, the move in question // becomes a candidate move. Information is stored to // facilitate easy learning during the game. -move opening_book(h_code hash_code, position p) +my_move opening_book(h_code hash_code, position p) { int file_size, mflag = 0, j; int candidates = 0, total_score = 0; int logger = 0, poster = 0; move_list list; - move nomove; nomove.t = 0; + my_move nomove; nomove.t = 0; char book_file[100]; // file name for the book // generate legal moves @@@@ -398,7 +400,7 @@@@ int edit_book(h_code hash_code, position int file_size, mflag = 0, j, outflag = 0; int search_time = 0, total_score = 0; move_list list; - move nomove; nomove.t = 0; + my_move nomove; nomove.t = 0; char resp[2]; char book_file[100]; // file name for the book @@@@ -462,7 +464,7 @@@@ int edit_book(h_code hash_code, position if(outflag == 1) cout << "\n"; /* Edit mode for individual moves */ - move edit_move; + my_move edit_move; while(1) { cout << "\nEnter a move to be edited/investigated (0 = quit): "; cin >> mstring; if(mstring[0] == '0') break; @ 1.3 log @Avoid conflict with C++11's std::move. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.2 2011/11/25 21:52:33 joerg Exp $ @ 1.2 log @Fix build with modern GCC @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1.1.1 2000/10/25 08:40:00 jlam Exp $ d23 2 a24 1 @@@@ -52,7 +54,7 @@@@ void build_book(position ipos) d27 1 a27 1 move bmove; // book move under consideration d29 1 d34 6 a39 1 @@@@ -245,7 +247,7 @@@@ int find_record(position p, move m, int d48 34 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- book.cpp.orig Sun Apr 30 09:56:26 2000 d5 19 a23 1 @@@@ -52,7 +52,7 @@@@ d32 1 a32 1 @@@@ -245,7 +245,7 @@@@ @ 1.1.1.1 log @EXchess - experimental chess engine (capable of beating Crafty) @ text @@