Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualalvaro

Posted 08 October 2012 - 03:46 PM

Wow, I just noticed something crazy in your code. What are you calling showBoard in the middle of the search?

EDIT: If you expect that code to only be executed at the root, but it turns out it's getting executed in internal nodes as well, the output will be very confusing. Perhaps that's what you are experiencing...

I recommend separating the search of the root of the tree into its own function. There is a little bit of code duplication, but there are enough differences to justify it (returning a move, reporting progress, iterative deepening, time control, looking up the opening book, clearing the hash tables or at least making them obsolete...).

#1alvaro

Posted 08 October 2012 - 03:44 PM

Wow, I just noticed something crazy in your code. What are you calling showBoard in the middle of the search?

I recommend separating the search of the root of the tree into its own function. There is a little bit of code duplication, but there are enough differences to justify it (returning a move, reporting progress, iterative deepening, time control, looking up the opening book, clearing the hash tables or at least making them obsolete...).

PARTNERS