B:BD[
2.1043] → [
2.1043:1410]
// minimax is for retrieving the optimal value for maximizer
// depth is the current depth in the game tree
// nodeIndex is the current index of node in scores
// scores stores the Game Tree
// isMax is true if the current move is a maximizer
// height is the max height of the Game Tree
func minimax(depth, nodeIndex int, isMax bool, scores []int, height int) int {
// Minimax is for retrieving the optimal value for maximizer.
// depth is the current depth in the game tree
// nodeIndex is the current index of node in scores
// isMax is true if the current move is a maximizer
// scores stores the Game Tree
// height is the max height of the Game Tree
func Minimax(depth, nodeIndex int, isMax bool, scores []int, height int) int {