minimaxmaximaxperiaatteet
minimaxmaximaxperiaatteet, often shortened to just minimax, is a decision-making algorithm used in game theory and artificial intelligence. It is designed to find the optimal move for a player in a two-player, zero-sum game, assuming the opponent also plays optimally. The core idea is to minimize the maximum possible loss the player can suffer.
In a game, a player's goal is to maximize their own score while simultaneously minimizing the opponent's
This recursive process continues until the root of the game tree is reached, which represents the current