Atacan KULLABCI Kubilay BEKTAŞ

Slides:



Advertisements
Similar presentations
Adversarial Search Chapter 6 Section 1 – 4. Types of Games.
Advertisements

Adversarial Search We have experience in search where we assume that we are the only intelligent being and we have explicit control over the “world”. Lets.
Games & Adversarial Search Chapter 5. Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent’s reply. Time.
Games & Adversarial Search
Artificial Intelligence Adversarial search Fall 2008 professor: Luigi Ceccaroni.
ICS-271:Notes 6: 1 Notes 6: Game-Playing ICS 271 Fall 2008.
Adversarial Search Chapter 5.
Adversarial Search: Game Playing Reading: Chapter next time.
Lecture 12 Last time: CSPs, backtracking, forward checking Today: Game Playing.
Adversarial Search 對抗搜尋. Outline  Optimal decisions  α-β pruning  Imperfect, real-time decisions.
Search Strategies.  Tries – for word searchers, spell checking, spelling corrections  Digital Search Trees – for searching for frequent keys (in text,
Minimax and Alpha-Beta Reduction Borrows from Spring 2006 CS 440 Lecture Slides.
This time: Outline Game playing The minimax algorithm
Game Playing CSC361 AI CSC361: Game Playing.
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Ch.6: Adversarial Search Fall 2008 Marco Valtorta.
Min-Max Trees Based on slides by: Rob Powers Ian Gent Yishay Mansour.
Max Min Max Min Starting node and labels Figure 4.15 (pp. 148) MiniMax Search.
ICS-271:Notes 6: 1 Notes 6: Game-Playing ICS 271 Fall 2006.
Adversarial Search: Game Playing Reading: Chess paper.
Games & Adversarial Search Chapter 6 Section 1 – 4.
Game Playing State-of-the-Art  Checkers: Chinook ended 40-year-reign of human world champion Marion Tinsley in Used an endgame database defining.
Game Trees: MiniMax strategy, Tree Evaluation, Pruning, Utility evaluation Adapted from slides of Yoonsuck Choe.
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 2 Adapted from slides of Yoonsuck.
Game Playing. Introduction Why is game playing so interesting from an AI point of view? –Game Playing is harder then common searching The search space.
Game Playing.
Agents that can play multi-player games. Recall: Single-player, fully-observable, deterministic game agents An agent that plays Peg Solitaire involves.
Chapter 6 Adversarial Search. Adversarial Search Problem Initial State Initial State Successor Function Successor Function Terminal Test Terminal Test.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 6 –Adversarial Search Thursday –AIMA, Ch. 6 –More Adversarial Search The “Luke.
Space Complexity. Reminder: P, NP classes P NP is the class of problems for which: –Guessing phase: A polynomial time algorithm generates a plausible.
Game Playing. Introduction One of the earliest areas in artificial intelligence is game playing. Two-person zero-sum game. Games for which the state space.
Adversarial Search Chapter Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time limits.
ARTIFICIAL INTELLIGENCE (CS 461D) Princess Nora University Faculty of Computer & Information Systems.
Adversarial Search. Game playing u Multi-agent competitive environment u The most common games are deterministic, turn- taking, two-player, zero-sum game.
Game Playing Evolve a strategy for two-person zero-sum games. Help the user to determine the next move. Constructing a game tree Each node represents a.
Adversarial Search. Regular Tic Tac Toe Play a few games. –What is the expected outcome –What kinds of moves “guarantee” that?
Adversarial Search Chapter 6 Section 1 – 4. Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time.
Space Complexity. Reminder: P, NP classes P is the class of problems that can be solved with algorithms that runs in polynomial time NP is the class of.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 5 Adversarial Search (Thanks Meinolf Sellman!)
Chapter 5 Adversarial Search. 5.1 Games Why Study Game Playing? Games allow us to experiment with easier versions of real-world situations Hostile agents.
1 Decisions in games Minimax algorithm  -  algorithm Tic-Tac-Toe game Decisions in games Minimax algorithm  -  algorithm Tic-Tac-Toe game.
Game Algorithms Prepared for COSC 6111 By Stephanie Wilson November 15th, 2006.
Game Playing Why do AI researchers study game playing?
Instructor: Vincent Conitzer
PENGANTAR INTELIJENSIA BUATAN (64A614)
Pengantar Kecerdasan Buatan
Optimizing Minmax Alpha-Beta Pruning Real Time Decisions
Adversarial Search.
Game Playing.
Two-player Games (2) ZUI 2013/2014
Adversarial Search Chapter 5.
Games & Adversarial Search
Games & Adversarial Search
Artificial Intelligence
Game playing.
Games & Adversarial Search
Games & Adversarial Search
Kevin Mason Michael Suggs
NIM - a two person game n objects are in one pile
Artificial Intelligence
Instructor: Vincent Conitzer
Reinforcement Learning for Adaptive Game Learner
Minimax strategies, alpha beta pruning
Based on slides by: Rob Powers Ian Gent
Games & Adversarial Search
Adversarial Search CMPT 420 / CMPG 720.
Minimax strategies, alpha beta pruning
Adversarial Search Game Theory.
CS51A David Kauchak Spring 2019
Games & Adversarial Search
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning
Presentation transcript:

Atacan KULLABCI Kubilay BEKTAŞ Minimax Algorithm Atacan KULLABCI Kubilay BEKTAŞ 140144035 130144010 Ankara/2017

The initial state and the legal moves for each side define the game tree for the game.

• First player (MAX) • Second player (MIN) • The number on each leaf node indicates the utility value of the terminal state from the point of view of MAX

Example: Strategy Game Solved by Minimax Algorithm Let’s assume this strategic game with two players: MAX (black area) and MIN (white area). The army can move up, down, right and left. The utility function is given as: (points of first move of MAX) - (points of first move of MIN)

Utility value: 4 – 0 Utility value: 4 – 0 It is 4 It is 4 Check if MAX player’s armies can move up, down, right and left. If so, find the possible moves. There are 2 possible moves Option1 Option2 Utility value: 4 – 0 Utility value: 4 – 0 It is 4 It is 4

Check if MIN player’s armies can move up, down, right and left Check if MIN player’s armies can move up, down, right and left. If so, find the possible moves. There are 3 possible moves for Option1 and 2 possible moves for Option2 For Option1 Moves1 Moves2 Utility value: 4(from MAX) – 10 Utility value: 4(from MAX) – 10 It is -6 It is -6 Utility value: 4(from MAX) – 4 It is 0

Utility value: 4(from MAX) – 10 Utility value: 4(from MAX) – 10 For Option2 Moves1 Moves2 Utility value: 4(from MAX) – 10 Utility value: 4(from MAX) – 10 It is -6 It is -6

Let’s analyze Minimax algorithm by combining all the possible options(moves) +4 +4 -10 -10 -10 -4 -10 It is -6 It is -6 It is 0 It is -6 It is -6

MAX MIN

Since the result is -6, the winner is MIN(white) MAX -6 MIN -6 -6 -6 -6 -6 -6 Since the result is -6, the winner is MIN(white)

Minimax Algorithm Analysis The minimax algorithm performs a complete depth-first exploration of the game tree. If the maximum depth of the tree is m and there are b legal moves at each point, The time complexity of the minimax algorithm is O(b m). The space complexity is O(bm) for an algorithm that generates all actions at once, or O(m) for an algorithm that generates actions one at a time. For real games, of course, the time cost is totally impractical, but this algorithm serves as the basis for the mathematical analysis of games and for more practical algorithms.

References https://en.wikipedia.org/wiki/Minimax http://www.code2learn.com/2012/01/minimax-algorithm- tutorial.html http://neverstopbuilding.com

THANK YOU FOR LISTENING ! THE END THANK YOU FOR LISTENING !