From 4aefae49267fae4a2ac2624259b5a0da1ef83700 Mon Sep 17 00:00:00 2001 From: Calcitem Date: Wed, 26 Feb 2020 00:29:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=8E=89=E9=83=A8=E5=88=86=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ai/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ai/search.cpp b/src/ai/search.cpp index 8d882516..1c0b99ac 100644 --- a/src/ai/search.cpp +++ b/src/ai/search.cpp @@ -385,10 +385,10 @@ int AIAlgorithm::nodeCompare(const Node *first, const Node *second) int ret = (gSideToMove == PLAYER_BLACK ? 1 : -1); - return (first->value < second->value ? ret : -ret); + return (first->value < second->value ? ret : -ret); } - return (first->rating < second->rating ? 1 : -1); + return (first->rating < second->rating ? 1 : -1); } void AIAlgorithm::sortMoves(Node *node)