Mini-Max Algorithm

To determine the best possible move for a player in a two-player turn-based game by evaluating all potential future outcomes and choosing the action that gives the player the greatest advantage while reducing the opponent’s chances of winning.