Skip to content

Commit

Permalink
bug correction: book import command sets book depth incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
lavox committed Oct 22, 2017
1 parent 9766cd8 commit 961cdf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/book.c
Original file line number Diff line number Diff line change
Expand Up @@ -1524,12 +1524,12 @@ void book_import(Book *book, const char *file)
}
bprint("importing book from %s... %d positions", file, book->n_nodes);

book->options.n_empties = 0;
book->options.n_empties = 60;
book->options.level = 0;
foreach_position(p, a, book) {
n_empties = board_count_empties(p->board);
if (p->level > book->options.level) book->options.level = p->level;
if (n_empties > book->options.n_empties) book->options.n_empties = n_empties;
if (n_empties < book->options.n_empties) book->options.n_empties = n_empties;
}

random_seed(book->random, real_clock());
Expand Down

0 comments on commit 961cdf7

Please sign in to comment.