     [v, a]
 
   mini: (state, α, β, ply) ->
-    [v, a] = [+Infinity, null]
+    [v, a] = [+Limit, null]
     for action in state.possibleActions()
       successor = state.play action
       [nextValue, _] = @minimax successor, α, β, ply

      β = Math.min β, v
    [v, a]

module.exports = { MAX, MIN, MinimaxAgent }

      @mini state, α, β, ply

  maxi: (state, α, β, ply) ->
    [v, a] = [-Limit, null]
    for action in state.possibleActions()
      successor = state.play action
      [nextValue, _] = @minimax successor, α, β, ply
