调整五子棋难度级别为2~5

This commit is contained in:
2026-03-12 15:55:41 +08:00
parent cb3481b269
commit 5b70ccd51f
+4 -4
View File
@@ -40,10 +40,10 @@ class GomokuAiService
public function think(array $board, int $aiLevel): array public function think(array $board, int $aiLevel): array
{ {
return match ($aiLevel) { return match ($aiLevel) {
1 => $this->thinkMinimax($board, 1), // 简单:深度1 1 => $this->thinkMinimax($board, 2), // 简单:深度2
2 => $this->thinkMinimax($board, 2), // 普通:深度2 2 => $this->thinkMinimax($board, 3), // 普通:深度3
3 => $this->thinkMinimax($board, 3), // 困难:深度3 3 => $this->thinkMinimax($board, 4), // 困难:深度4
default => $this->thinkMinimax($board, 4), // 专家:深度4 default => $this->thinkMinimax($board, 5), // 专家:深度5
}; };
} }