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
|
return bestMove
|
||||||
} else {
|
} else {
|
||||||
// set min score
|
// set min score
|
||||||
bestScore := +10000
|
bestScore := 10000
|
||||||
var bestMove NextMove
|
var bestMove NextMove
|
||||||
// iterate through all fields
|
// iterate through all fields
|
||||||
for i := 0; i < 3; i++ {
|
for i := 0; i < 3; i++ {
|
||||||
|
|
Loading…
Reference in New Issue