Skip to content

Commit

Permalink
fix: fix overflows for windows release (win: long=32bit, linux: long=…
Browse files Browse the repository at this point in the history
…64bit)
  • Loading branch information
xjcl committed Dec 1, 2022
1 parent be71b49 commit f873e18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jangine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@ void board_from_fen(const char* fen) { // setting up a game

num SEARCH_ADAPTIVE_DEPTH = 6; // how many plies to search

num MAX_SEARCH_DEPTH = 99999;
num OWN_CLOCK_REMAINING = 180000; // 180 seconds remaining
num MAX_SEARCH_DEPTH = 9999;
uint64_t OWN_CLOCK_REMAINING = 180000; // 180 seconds remaining

typedef struct GenMoves {
Move* captures;
Expand Down Expand Up @@ -1163,7 +1163,7 @@ std::string calc_move(bool lines = false)
board_eval = initial_eval();
zobrint_hash = board_to_zobrint_hash();
num my_color = IM_WHITE ? WHITE : BLACK;
num OWN_TIME_TO_USE_MAX = (OWN_CLOCK_REMAINING / 20); // assume 25-ish moves left
uint64_t OWN_TIME_TO_USE_MAX = (OWN_CLOCK_REMAINING / 20); // assume 25-ish moves left
Move mv = {0};

printf("Starting iterative deepening alphabeta search at ZOB %ld eval %ld\n", zobrint_hash, board_eval);
Expand Down

0 comments on commit f873e18

Please sign in to comment.