Skip to content

Commit

Permalink
Merge pull request #43 from miguel-ambrona/ambrona@full-is_dead
Browse files Browse the repository at this point in the history
Switch to full analysis on exposed `is_dead` function
  • Loading branch information
miguel-ambrona authored Dec 31, 2023
2 parents 6dcb86e + 55e25b4 commit 1c87455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cha.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ bool CHA::is_dead(Position& pos) {
static DYNAMIC::Search search = DYNAMIC::Search();

search.set_winner(WHITE);
DYNAMIC::SearchResult result = DYNAMIC::quick_analysis(pos, search, true);
DYNAMIC::SearchResult result = DYNAMIC::full_analysis(pos, search);

if (result != DYNAMIC::UNWINNABLE) return false;

search.set_winner(BLACK);
return DYNAMIC::UNWINNABLE == DYNAMIC::quick_analysis(pos, search, true);
return DYNAMIC::UNWINNABLE == DYNAMIC::full_analysis(pos, search);
};

0 comments on commit 1c87455

Please sign in to comment.