From 34f35882c158ad145400639ac93db63943cb33ee Mon Sep 17 00:00:00 2001 From: Falko Habel Date: Sat, 18 May 2024 23:50:42 +0200 Subject: [PATCH] fixed Bug related to Minimax --- opponent/minimax.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opponent/minimax.go b/opponent/minimax.go index 56710b1..75d9012 100644 --- a/opponent/minimax.go +++ b/opponent/minimax.go @@ -48,7 +48,7 @@ func Minimax(board [3][3]string, depth int, isMaximizingPlayer bool, player stri return bestMove } else { // set min score - bestScore := +10000 + bestScore := 10000 var bestMove NextMove // iterate through all fields for i := 0; i < 3; i++ {