About 2,490,000 results
Open links in new tab
  1. Mini-Max Algorithm in Artificial Intelligence - GeeksforGeeks

    Apr 7, 2025 · Mini-Max algorithm is a decision-making algorithm used in artificial intelligence, particularly in game theory and computer games. It is designed to minimize the possible loss in a worst-case scenario (hence "min") and maximize the potential gain (therefore "max").

  2. Minimax Algorithm in Game Theory | Set 1 (Introduction)

    Jun 13, 2022 · Minimax is a kind of backtracking algorithm that is used in decision making and game theory to find the optimal move for a player, assuming that your opponent also plays optimally. It is widely used in two player turn-based games such as Tic-Tac-Toe, Backgammon, Mancala, Chess, etc.

  3. Finding optimal move in Tic-Tac-Toe using Minimax Algorithm in …

    Feb 20, 2023 · To check whether or not the current move is better than the best move we take the help of minimax () function which will consider all the possible ways the game can go and returns the best value for that move, assuming the opponent also plays optimally.

  4. Implementing the Minimax Algorithm for AI in Python

    Jan 31, 2025 · Learn to code an unbeatable Tic-tac-toe AI using the Minimax algorithm in Python. This tutorial covers theory, implementation, and optimization, ideal for game AI enthusiasts.

  5. Minimax-algorithm (PYTHON-VERSION) - GitHub

    The algorithm search, recursively, the best move that leads the Max player to win or not lose (draw). It consider the current state of the game and the available moves at that state, then for each valid move it plays (alternating min and max) until it finds a terminal state (win, draw or lose).

  6. Minimax in Python: Learn How to Lose the Game of Nim

    The minimax algorithm can be used to find optimal strategies in many different games. In this tutorial, you'll learn how to implement minimax in Python while playing the game of Nim. You'll also learn how you can make the algorithm more efficient with alpha-beta pruning.

  7. Create a Tic Tac Toe Game in Python using Minimax Algorithm

    May 10, 2021 · In this tutorial, we will develop the Tic Tac Toe Game in Python using PyGame library. To add some excitement, we’ll implement the minimax algorithm to turn the computer into a formidable opponent.

  8. min max algorithm in python - Stack Overflow

    Aug 8, 2010 · For max function, I am just returning the bestscore. if (gameState.isWin()): return gameState.getScore() actions = gameState.getLegalActions(0); bestScore = -99999. bestAction = Directions.STOP. for action in actions: if (action != Directions.STOP): score = minAgent(gameState.generateSuccessor(0, action), depth, 1) if (score > bestScore):

  9. algorithm - Minimax: how can I implement it in Python? - Stack Overflow

    Oct 16, 2010 · There is an implementation of minimax as part of an othello game here (and for browsers here). Stepping through this with a debugger and/or through use of logging statements may supplement theoretical descriptions of the algorithm. This visualization applet may also help. At each stage the player will choose the move which is best for himself.

  10. Minimax with Alpha-Beta Pruning in Python - Stack Abuse

    Aug 24, 2023 · The Minimax algorithm is a relatively simple algorithm used for optimal decision-making in game theory and artificial intelligence. Again, since these algorithms heavily rely on being efficient, the vanilla algorithm's performance can be heavily improved by using alpha-beta pruning - we'll cover both in this article.

  11. Some results have been removed
Refresh