Game Playing in AI and minimax algorithm.pptx

BasicScience2 14 views 17 slides Aug 31, 2025
Slide 1
Slide 1 of 17
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17

About This Presentation

Game playing in AI and minimax algorithm


Slide Content

UNIT II Game Playing

Introduction Game playing has been a classic problem in AI since the 1950s. Provides a controlled environment to test AI techniques. Games involve: Players (human or machine) Rules (define valid moves) Strategies (plans to win) Outcomes (win/lose/draw, or points)

Why AI in Games? Testbed for search algorithms and decision-making . Simulates real-world problem-solving in a simplified form. Helps in developing techniques like: Search (DFS, BFS, A*) Heuristics Minimax & Alpha-Beta pruning Reinforcement Learning

Examples of Games in AI Chess β†’ Deep Blue (IBM) defeating Garry Kasparov. Go β†’ AlphaGo (DeepMind) beating world champions. Tic-Tac-Toe, Checkers, Pac-Man β†’ teaching search & strategy. Game playing in AI = searching through possible moves to choose the best strategy under given rules.

Minimax Algorithm 🌟 What is Minimax? : It is a backtracking technique which is used in Game theory and decision making. A decision-making algorithm used in two-player games (e.g., Chess, Tic-Tac-Toe). Players: MAX β†’ tries to maximize score (AI). MIN β†’ tries to minimize score (opponent). Assumes both players play optimally .

How it Works Represent the game as a tree of moves . At each node: MAX picks the highest value move . MIN picks the lowest value move . Continue until reaching leaf nodes (game-over states). Backtrack values up the tree β†’ root node gives best move for MAX .

Key Features Adversarial Search β†’ AI vs Opponent. Works with zero-sum games (one’s gain = other’s loss). Guarantees optimal decision if search goes to the end.

Limitations Slow for complex games such as chess 35 moves Depth: 100 35 100 very big

Numerical Problem No. 1

Problem No.2

Problem No. 3

Problem no. 4
Tags