fixed Bug related to Minimax
This commit is contained in:
parent
f0f068af76
commit
34f35882c1
|
@ -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++ {
|
||||
|
|
Loading…
Reference in New Issue