SlideShare a Scribd company logo
1 of 17
Welcome To Our Presentation
7X7 Tic Tac Toe Solver
Problem Description :
 Tic Tac Toe (also called Noughts and crosses, Xs and Os, XOX Game) is a very popular
children’s pencil and paper game, which is often enjoyed by many adults, as well.
 Because of its simplicity, the game may seem trivial at first, however, Tic Tac Toe
involves its share of analytics and rapidity.
 The game is a lot of fun for people of all ages and provides one with a great brain
workout too!
 play Tic Tac Toe online with other players or challenge Paper Man, a robot, in order to
win points and obtain a higher ranking!
History of Tic Tac Toe
 An early variation of the game was played in the Roman Empire, around
the 1st century B.C.
 It was called terni lapilli, which means "three pebbles at a time.“
 The game's grid markings have been found chalked all over Roman
ruins.
More Advanced Tic Tac Toe
 A relatively simple game usually played on a grid of 3 x 3 squares
 Tic-tac-toe is mainly enjoyed by children.
 Tic-tac-toe can be made significantly more complex by increasing the size
of the board to 4 x 4, 5 x 5, or even up to a 20 x 20 grid.
 The game is to be played between two people (in this
program between HUMAN and COMPUTER).
 One of the player chooses ‘O’ and the other ‘X’ to mark
their respective cells.
 The game starts with one of the players and the game ends
when one of the players has one whole row/ column/
diagonal filled with his/her respective character (‘O’ or ‘X’).
 If no one wins, then the game is said to be draw.
Rules of the Tic-Tac-Toe game
possible outputs of the game
 Minimax is a decision-making algorithm, typically in two player
games.
 Minimax is a kind of backtracking algorithm.
 The goal of the algorithm is to find the optimal next move.
 In the algorithm, one player is called the maximizer, and the
other player is a minimizer..
 The maximizer works to get the highest score, while the
minimizer tries get the lowest score.
 It is based on the zero-sum game concept. whatever one player
wins the other loses. So, the total score is always zero.
 Examples of such games are chess, poker, checkers, tic-tac-toe.
Introduction to Minimax
Example of minimax Algorithm.
Pseudocode
Explanation
Application: Minimax is the heart of almost every computer board game.
It applies to the games where
Players take turns
Underlying assumption
 Have perfect information But it can work form games with or without
perfect information or chance e.g:
Poker
Monopoles
Dice.
Tic-tac-toe
Chess
checkers
properties of minimax algorithm
 complete ? == Yes (If there is finite )
 Optimal? == Yes (Against an optimal opponent)
 Time complexity?== O(b^m)
 Space Complexity? == O(bm) (depth first exploration)
Minimax Advantages
• Returns an optimal action, assuming perfect opponent play.
• Minimax is the simplest possible(reasonable)game search algorithm.
• It provides a complete possible search if tree is finite.
Minimax Disadvantages
• It is completely in feasible in practice.
• When search tree is too large, we need to limit the search depth
• We have to apply an evaluation function to the cut-off states
Improvement A major problem with this approach is
that we have to explore each and every node even if we
have found Min or Max values.
Solution:
Fortunately, there is an option to find the optimal
move, without exploring every node of the game tree.
We can skip some branches by following some rules,
and it won’t affect the final result.
This process is called pruning. Alpha–beta pruning is a
prevalent variant of minimax algorithm.
7x7 Tic Tac Toe Solver Explained

More Related Content

What's hot

Adversarial search
Adversarial searchAdversarial search
Adversarial searchDheerendra k
 
12 adversal search
12 adversal search12 adversal search
12 adversal searchTianlu Wang
 
Python Data-Science-Preview
Python Data-Science-Preview Python Data-Science-Preview
Python Data-Science-Preview whuang022ai
 
Tic Tac Toe Java Development
Tic Tac Toe Java DevelopmentTic Tac Toe Java Development
Tic Tac Toe Java Developmentpengqia chen
 
TornadoBrickSmasherUserManual
TornadoBrickSmasherUserManualTornadoBrickSmasherUserManual
TornadoBrickSmasherUserManualClayton Schembri
 
Adversarial search
Adversarial searchAdversarial search
Adversarial searchNilu Desai
 
Artificial intelligence games
Artificial intelligence gamesArtificial intelligence games
Artificial intelligence gamesSujithmlamthadam
 
project on snake game in c language
project on snake game in c languageproject on snake game in c language
project on snake game in c languageAshutosh Kumar
 
Komputer dasar
Komputer dasarKomputer dasar
Komputer dasarAdhibina
 
report on snake game
report on snake game report on snake game
report on snake game azhar niaz
 
Lecture 3 MMX3043 Game Design and Development
Lecture 3 MMX3043 Game Design and DevelopmentLecture 3 MMX3043 Game Design and Development
Lecture 3 MMX3043 Game Design and DevelopmentLaili Farhana M.I.
 

What's hot (12)

Adversarial search
Adversarial searchAdversarial search
Adversarial search
 
12 adversal search
12 adversal search12 adversal search
12 adversal search
 
Python Data-Science-Preview
Python Data-Science-Preview Python Data-Science-Preview
Python Data-Science-Preview
 
Tic Tac Toe Java Development
Tic Tac Toe Java DevelopmentTic Tac Toe Java Development
Tic Tac Toe Java Development
 
TornadoBrickSmasherUserManual
TornadoBrickSmasherUserManualTornadoBrickSmasherUserManual
TornadoBrickSmasherUserManual
 
Adversarial search
Adversarial searchAdversarial search
Adversarial search
 
Artificial intelligence games
Artificial intelligence gamesArtificial intelligence games
Artificial intelligence games
 
project on snake game in c language
project on snake game in c languageproject on snake game in c language
project on snake game in c language
 
Komputer dasar
Komputer dasarKomputer dasar
Komputer dasar
 
report on snake game
report on snake game report on snake game
report on snake game
 
Lecture 3 MMX3043 Game Design and Development
Lecture 3 MMX3043 Game Design and DevelopmentLecture 3 MMX3043 Game Design and Development
Lecture 3 MMX3043 Game Design and Development
 
Game e
Game eGame e
Game e
 

Similar to 7x7 Tic Tac Toe Solver Explained

Recreational mathematics for MichMATYC 10 10
Recreational mathematics for MichMATYC 10 10Recreational mathematics for MichMATYC 10 10
Recreational mathematics for MichMATYC 10 10nsattler
 
AI3391 Artificial Intelligence UNIT III Notes_merged.pdf
AI3391 Artificial Intelligence UNIT III Notes_merged.pdfAI3391 Artificial Intelligence UNIT III Notes_merged.pdf
AI3391 Artificial Intelligence UNIT III Notes_merged.pdfAsst.prof M.Gokilavani
 
An introduction to Game Theory
An introduction to Game TheoryAn introduction to Game Theory
An introduction to Game TheoryPaul Trafford
 
Artificial Intelligence- TicTacToe game
Artificial Intelligence- TicTacToe gameArtificial Intelligence- TicTacToe game
Artificial Intelligence- TicTacToe gamemanika kumari
 
Topic - 6 (Game Playing).ppt
Topic - 6 (Game Playing).pptTopic - 6 (Game Playing).ppt
Topic - 6 (Game Playing).pptSabrinaShanta2
 
Learning to Play Complex Games
Learning to Play Complex GamesLearning to Play Complex Games
Learning to Play Complex Gamesbutest
 
MINI-MAX ALGORITHM.pptx
MINI-MAX ALGORITHM.pptxMINI-MAX ALGORITHM.pptx
MINI-MAX ALGORITHM.pptxNayanChandak1
 
Online gaming culture 2
Online gaming culture 2Online gaming culture 2
Online gaming culture 2Anton367594
 
Game playing in artificial intelligent technique
Game playing in artificial intelligent technique Game playing in artificial intelligent technique
Game playing in artificial intelligent technique syeda zoya mehdi
 
Maths_GameSingleSlide.ppt
Maths_GameSingleSlide.pptMaths_GameSingleSlide.ppt
Maths_GameSingleSlide.pptConieHipolito5
 
Presentation sanlab workshops
Presentation sanlab workshopsPresentation sanlab workshops
Presentation sanlab workshopsArtur Roszczyk
 
Modelling and implementation of 9tka game with MaxN algorithm
Modelling and implementation of 9tka game with MaxN algorithmModelling and implementation of 9tka game with MaxN algorithm
Modelling and implementation of 9tka game with MaxN algorithmTELKOMNIKA JOURNAL
 

Similar to 7x7 Tic Tac Toe Solver Explained (20)

Recreational mathematics for MichMATYC 10 10
Recreational mathematics for MichMATYC 10 10Recreational mathematics for MichMATYC 10 10
Recreational mathematics for MichMATYC 10 10
 
AI3391 Artificial Intelligence UNIT III Notes_merged.pdf
AI3391 Artificial Intelligence UNIT III Notes_merged.pdfAI3391 Artificial Intelligence UNIT III Notes_merged.pdf
AI3391 Artificial Intelligence UNIT III Notes_merged.pdf
 
An introduction to Game Theory
An introduction to Game TheoryAn introduction to Game Theory
An introduction to Game Theory
 
AI Lesson 07
AI Lesson 07AI Lesson 07
AI Lesson 07
 
Artificial Intelligence- TicTacToe game
Artificial Intelligence- TicTacToe gameArtificial Intelligence- TicTacToe game
Artificial Intelligence- TicTacToe game
 
AI_unit3.pptx
AI_unit3.pptxAI_unit3.pptx
AI_unit3.pptx
 
Topic - 6 (Game Playing).ppt
Topic - 6 (Game Playing).pptTopic - 6 (Game Playing).ppt
Topic - 6 (Game Playing).ppt
 
cai
caicai
cai
 
Minimax
MinimaxMinimax
Minimax
 
Learning to Play Complex Games
Learning to Play Complex GamesLearning to Play Complex Games
Learning to Play Complex Games
 
MINI-MAX ALGORITHM.pptx
MINI-MAX ALGORITHM.pptxMINI-MAX ALGORITHM.pptx
MINI-MAX ALGORITHM.pptx
 
Online gaming culture 2
Online gaming culture 2Online gaming culture 2
Online gaming culture 2
 
Game playing in artificial intelligent technique
Game playing in artificial intelligent technique Game playing in artificial intelligent technique
Game playing in artificial intelligent technique
 
Maths_GameSingleSlide.ppt
Maths_GameSingleSlide.pptMaths_GameSingleSlide.ppt
Maths_GameSingleSlide.ppt
 
When Random is too Random
When Random is too RandomWhen Random is too Random
When Random is too Random
 
AI Lecture 5 (game playing)
AI Lecture 5 (game playing)AI Lecture 5 (game playing)
AI Lecture 5 (game playing)
 
Presentation sanlab workshops
Presentation sanlab workshopsPresentation sanlab workshops
Presentation sanlab workshops
 
Modelling and implementation of 9tka game with MaxN algorithm
Modelling and implementation of 9tka game with MaxN algorithmModelling and implementation of 9tka game with MaxN algorithm
Modelling and implementation of 9tka game with MaxN algorithm
 
Two player games
Two player gamesTwo player games
Two player games
 
Aipapercpt
AipapercptAipapercpt
Aipapercpt
 

Recently uploaded

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 

Recently uploaded (20)

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 

7x7 Tic Tac Toe Solver Explained

  • 1. Welcome To Our Presentation
  • 2. 7X7 Tic Tac Toe Solver
  • 3. Problem Description :  Tic Tac Toe (also called Noughts and crosses, Xs and Os, XOX Game) is a very popular children’s pencil and paper game, which is often enjoyed by many adults, as well.  Because of its simplicity, the game may seem trivial at first, however, Tic Tac Toe involves its share of analytics and rapidity.  The game is a lot of fun for people of all ages and provides one with a great brain workout too!  play Tic Tac Toe online with other players or challenge Paper Man, a robot, in order to win points and obtain a higher ranking!
  • 4. History of Tic Tac Toe  An early variation of the game was played in the Roman Empire, around the 1st century B.C.  It was called terni lapilli, which means "three pebbles at a time.“  The game's grid markings have been found chalked all over Roman ruins. More Advanced Tic Tac Toe  A relatively simple game usually played on a grid of 3 x 3 squares  Tic-tac-toe is mainly enjoyed by children.  Tic-tac-toe can be made significantly more complex by increasing the size of the board to 4 x 4, 5 x 5, or even up to a 20 x 20 grid.
  • 5.  The game is to be played between two people (in this program between HUMAN and COMPUTER).  One of the player chooses ‘O’ and the other ‘X’ to mark their respective cells.  The game starts with one of the players and the game ends when one of the players has one whole row/ column/ diagonal filled with his/her respective character (‘O’ or ‘X’).  If no one wins, then the game is said to be draw. Rules of the Tic-Tac-Toe game
  • 7.  Minimax is a decision-making algorithm, typically in two player games.  Minimax is a kind of backtracking algorithm.  The goal of the algorithm is to find the optimal next move.  In the algorithm, one player is called the maximizer, and the other player is a minimizer..  The maximizer works to get the highest score, while the minimizer tries get the lowest score.  It is based on the zero-sum game concept. whatever one player wins the other loses. So, the total score is always zero.  Examples of such games are chess, poker, checkers, tic-tac-toe. Introduction to Minimax
  • 8. Example of minimax Algorithm.
  • 11.
  • 12.
  • 13. Application: Minimax is the heart of almost every computer board game. It applies to the games where Players take turns Underlying assumption  Have perfect information But it can work form games with or without perfect information or chance e.g: Poker Monopoles Dice. Tic-tac-toe Chess checkers
  • 14. properties of minimax algorithm  complete ? == Yes (If there is finite )  Optimal? == Yes (Against an optimal opponent)  Time complexity?== O(b^m)  Space Complexity? == O(bm) (depth first exploration)
  • 15. Minimax Advantages • Returns an optimal action, assuming perfect opponent play. • Minimax is the simplest possible(reasonable)game search algorithm. • It provides a complete possible search if tree is finite. Minimax Disadvantages • It is completely in feasible in practice. • When search tree is too large, we need to limit the search depth • We have to apply an evaluation function to the cut-off states
  • 16. Improvement A major problem with this approach is that we have to explore each and every node even if we have found Min or Max values. Solution: Fortunately, there is an option to find the optimal move, without exploring every node of the game tree. We can skip some branches by following some rules, and it won’t affect the final result. This process is called pruning. Alpha–beta pruning is a prevalent variant of minimax algorithm.