From a8dcde3a5c061c8514fcc73f3d628e147937f0ac Mon Sep 17 00:00:00 2001 From: "dev@dev.com" Date: Fri, 4 Jun 2021 12:50:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E5=A4=B4=E5=8D=92=E7=9A=84=E4=BB=B7?= =?UTF-8?q?=E5=80=BC=E6=94=B9=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chesspi/chesspi_ai.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chesspi/chesspi_ai.cpp b/chesspi/chesspi_ai.cpp index fe710e9..336a2dd 100644 --- a/chesspi/chesspi_ai.cpp +++ b/chesspi/chesspi_ai.cpp @@ -67,8 +67,8 @@ float calc_cost(const int coordx[/*32*/], const int coordy[/*32*/],const int ali else rescost *= coordy[idx]<6?4:1; //当头卒价值高 - if (coordx[idx]==5 && (coordy[idx]==4 || coordy[idx]==7)) - rescost *=10; + if (coordx[idx]==5) + rescost *=5; break; default: break; -- GitLab