Skip to content

Commit

Permalink
simplify variable depth function
Browse files Browse the repository at this point in the history
  • Loading branch information
mbluemer committed Apr 29, 2017
1 parent 0b12a63 commit c03815a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/MinimaxSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ bool MinimaxSearch::shouldStop(bup &board, int depth)
{
// always return at some max depth regardless
if (depth >= MAX_DEPTH) return true;

bool jumpAvailable = heuristic.jumpeablePieces() != 0;

if (jumpAvailable) return false;
else if (heuristic.jumpeablePieces() != 0) return false;
else if (depth >= MIN_DEPTH) return true;
else return false;

Expand Down

0 comments on commit c03815a

Please sign in to comment.