From d5da75a8709294d824413f51c6b615a17d8460a3 Mon Sep 17 00:00:00 2001 From: Vincent Ollivier Date: Thu, 5 Apr 2012 08:26:44 +0200 Subject: [PATCH] Simplify is_mate() --- src/output.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/output.cpp b/src/output.cpp index 17a7005..2f0973c 100644 --- a/src/output.cpp +++ b/src/output.cpp @@ -56,8 +56,7 @@ void Game::print_thinking(int depth, int score, Move m) bool is_mate(int score) { - if ((score < -INF + MAX_PLY) || (INF - MAX_PLY < score)) return true; - return false; + return ((score < -INF + MAX_PLY) || (INF - MAX_PLY < score)); } std::string Game::output_pv(int depth, int score, Move m) -- 2.11.4.GIT