game playing in a i final
DESCRIPTION
It gives a strategy of framing a game.How a machine think for a game.TRANSCRIPT
![Page 1: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/1.jpg)
04/11/23JITM,Parlakhemundi
1
Seminar on
Game Playing in AI
by:
Neelamani Samal
0501213052
![Page 2: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/2.jpg)
04/11/23 JITM,Parlakhemundi 2
Definition…. Game
Game playing is a search problem defined by:
1. Initial state
2. Successor function
3. Goal test
4. Path cost / utility / payoff function
![Page 3: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/3.jpg)
04/11/23 JITM,Parlakhemundi 3
Types of Games
Perfect Information Game: In which player knows all the possible moves of himself and opponent and their results. E.g. Chess.
Imperfect Information Game: In which player does not know all the possible moves of the opponent. E.g. Bridge since all the cards are not visible to player.
![Page 4: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/4.jpg)
04/11/23 JITM,Parlakhemundi 4
Characteristics of game playing
• Unpredictable Opponent.
• Time Constraints.
![Page 5: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/5.jpg)
04/11/23 JITM,Parlakhemundi 5
Typical structure of the game in AI
2- person game
Players alternate moves
Zero-sum game: one player’s loss is the other’s gain
Perfect information: both players have access to complete information about the state of the game. No information is hidden from either player.
No chance (e.g. using dice) involved
E.g. Tic- Tac- Toe, Checkers, Chess
![Page 6: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/6.jpg)
04/11/23 JITM,Parlakhemumndi 6
Game Tree
Tic – Tac – Toe Game Tree
![Page 7: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/7.jpg)
04/11/23 JITM,Parlakhemundi 7
MAX
![Page 8: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/8.jpg)
04/11/23 JITM,Parlakhemundi 8
MAX cont..
![Page 9: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/9.jpg)
04/11/23 JITM,Parlakhemundi 9
MINIMAX..2 players.. MIN and MAX.
Utility of MAX = - (Utility of MIN).
Utility of game = Utility of MAX.
MIN tries to decrease utility of game.
MAX tries to increase utility of game.
![Page 10: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/10.jpg)
04/11/23 JITM,Parlakhemundi 10
MINIMAX Tree..
![Page 11: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/11.jpg)
04/11/23 JITM,Parlakhemundi 11
Properties of MINIMAXComplete: Yes, if tree is finite Optimal: Yes, against an optimal opponent. Time: O(bd) (depth- first exploration)Space: O(bd) (depth- first exploration)
b: Branching Factor d: Depth of Search Tree
Time constraints does not allow the tree to be fully explored.
How to get the utility values without exploring search tree up to leaves?
![Page 12: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/12.jpg)
04/11/23 JITM,Parlakhemundi 12
Evaluation Function
Evaluation function or static evaluator is used to evaluate the ‘goodness’ of a game position.
The zero-sum assumption allows us to use a single evaluation function to describe the goodness of a position with respect to both players.
E.g. f(n) is the evaluation function of the position ‘n’. Then,
– f(n) >> 0: position n is good for me and bad for you
– f(n) << 0: position n is bad for me and good for you
– f(n) near 0: position n is a neutral position
![Page 13: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/13.jpg)
04/11/23 JITM,Parlakhemundi 13
Alpha Beta Pruning
• At each MAX node n, alpha(n) = maximum value found so far
• At each MIN node n, beta(n) = minimum value found so
far
![Page 14: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/14.jpg)
04/11/23 JITM,Parlakhemundi 14
Alpha Beta Pruning Cont..
![Page 15: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/15.jpg)
04/11/23 JITM,Parlakhemundi 15
Alpha Beta Pruning Cont..
![Page 16: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/16.jpg)
04/11/23 JITM,Parlakhemundi 16
Alpha Beta Pruning Cont..
![Page 17: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/17.jpg)
04/11/23 JITM,Parlakhemundi 17
Alpha Beta Pruning Cont..
![Page 18: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/18.jpg)
04/11/23 JITM,Parlakhemundi 18
Effectiveness of Alpha Beta Pruning.
Worst-Casebranches are ordered so that no pruning takes placealpha-beta gives no improvement over exhaustive search
Best-Caseeach player’s best move is the left-most alternative (i.e., evaluated first)
In practice often get O(b(d/2)) rather than O(bd) e.g., in chess go from b ~ 35 to b ~ 6
• this permits much deeper search in the same amount of time• makes computer chess competitive with humans!
![Page 19: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/19.jpg)
04/11/23 JITM,Parlakhemundi 19
Iterative Deepening Search(IDS).
• IDS runs alpha-beta search with an increasing depth-limit
• The “inner” loop is a full alpha-beta search with a specified depth limit m
• When the clock runs out we use the solution found at the previous depth limit
![Page 20: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/20.jpg)
04/11/23 JITM,Parlakhemundi 20
Applications
Entertainment
Economics
Military
Etc…
![Page 21: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/21.jpg)
04/11/23 JITM,Parlakhemundi 21
Conclusion
Game theory remained the most interesting part of AI from the birth of AI. Game theory is very vast and interesting topic. It mainly deals with working in the constrained areas to get the desired results. They illustrate several important points about Artificial Intelligence like perfection can not be attained but we can approximate to it.
![Page 22: Game Playing In A I Final](https://reader033.vdocuments.us/reader033/viewer/2022051211/553b900d55034657228b4721/html5/thumbnails/22.jpg)
04/11/23JITM,Parlakhemundi
22
Thank you……