ThinkViz LogoThinkViz
← Back to Explorer

Minimax Algorithm

Minimax calculates optimal strategic choices in 2-player zero-sum games by recursively assuming the opponent plays optimally to minimize your score.

Category:Adversarial Search
•
Difficulty:Intermediate
•
Time complexity:O(b^m)
•
Space complexity:O(bm)
Interactive VisualizationMinimax Visualizer

Minimax Game Tree

Squares = MAX player. Circles = MIN player.

?
?
?
-1
10
?
-5
6
?
?
-2
-3
?
0
4
0/0
Real-time Telemetry HUD
Live Stream
Nodes Explored
0
Frontier (Open Set)
0
Optimal Cost g(n)
—
Total Step Frames
0