From 5b70ccd51fe61d46e86944f8219e6f579453d2fd Mon Sep 17 00:00:00 2001 From: lkddi Date: Thu, 12 Mar 2026 15:55:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BA=94=E5=AD=90=E6=A3=8B?= =?UTF-8?q?=E9=9A=BE=E5=BA=A6=E7=BA=A7=E5=88=AB=E4=B8=BA2~5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/GomokuAiService.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Services/GomokuAiService.php b/app/Services/GomokuAiService.php index 67b774b..e1e7eba 100644 --- a/app/Services/GomokuAiService.php +++ b/app/Services/GomokuAiService.php @@ -40,10 +40,10 @@ class GomokuAiService public function think(array $board, int $aiLevel): array { return match ($aiLevel) { - 1 => $this->thinkMinimax($board, 1), // 简单:深度1 - 2 => $this->thinkMinimax($board, 2), // 普通:深度2 - 3 => $this->thinkMinimax($board, 3), // 困难:深度3 - default => $this->thinkMinimax($board, 4), // 专家:深度4 + 1 => $this->thinkMinimax($board, 2), // 简单:深度2 + 2 => $this->thinkMinimax($board, 3), // 普通:深度3 + 3 => $this->thinkMinimax($board, 4), // 困难:深度4 + default => $this->thinkMinimax($board, 5), // 专家:深度5 }; }