SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

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.
 

Was ist angesagt? (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
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
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
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
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
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
 

Kürzlich hochgeladen (20)

Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
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
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
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
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
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)
 

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.