head 1.2; access; symbols pkgsrc-2019Q4:1.1.0.48 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.44 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.42 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.40 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.38 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.36 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.34 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.32 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.30 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.28 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.24 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.22 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.20 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.18 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.16 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.14 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.12 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.10 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.8 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.6 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.4 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.2 pkgsrc-2014Q3-base:1.1; locks; strict; comment @// @; 1.2 date 2020.03.21.14.41.45; author rillig; state dead; branches; next 1.1; commitid ortDVCT8eZe3ih1C; 1.1 date 2014.09.11.16.59.16; author jperkin; state Exp; branches; next ; commitid b7OUQ9vL3mT5TWPx; desc @@ 1.2 log @games/exchess: update to 7.97beta Changes since 7.31beta are unknown since the upstream author didn't document anything. I just stumbled upon this package because it didn't build with -Werror=char-subscripts. That bug seems to have been fixed. @ text @$NetBSD: patch-src_book.cpp,v 1.1 2014/09/11 16:59:16 jperkin Exp $ Avoid 'move' conflict. --- src/book.cpp.orig 2014-08-17 11:03:08.000000000 +0000 +++ src/book.cpp @@@@ -44,7 +44,7 @@@@ void build_book(position ipos) char instring[100], line[100]; // strings from input files char outbook[100], resp; position temp_pos; // temporary position - move bmove; // book move under consideration + my_move bmove; // book move under consideration unsigned __int64 pcode; // hash code for position int i = -1, j = 0, p,q; // loop variables int r, s; @@@@ -314,7 +314,7 @@@@ void build_book(position ipos) //-------------------------------------------------------- // Function to find a position in the book //-------------------------------------------------------- -int find_record(position p, move m, int file_size, book_rec *book_record, fstream *book_f, int file_pos) +int find_record(position p, my_move m, int file_size, book_rec *book_record, fstream *book_f, int file_pos) { int jump = int(file_size/2); unsigned __int64 pcode = ZERO; @@@@ -384,12 +384,12 @@@@ int find_record(position p, move m, int // becomes a candidate move. Information is stored to // facilitate easy learning during the game. //-------------------------------------------------------- -move opening_book(h_code hash_code, position p, game_rec *gr) +my_move opening_book(h_code hash_code, position p, game_rec *gr) { int file_size, mflag = 0, j; int candidates = 0, total_score = 0; move_list list; - move nomove; nomove.t = 0; + my_move nomove; nomove.t = 0; char book_file[100]; // file name for the book book_rec book_record; // record of move considered int file_pos; // file position of record @@@@ -680,7 +680,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.1 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 @d1 1 a1 1 $NetBSD$ @