Game Playing 20003574 최호연 20003439 이춘우. Overview Intro: Games as search problems Perfect decisions in 2-person games Imperfect decisions Alpha-beta pruning.

Slides:



Advertisements
Similar presentations
Chapter 6, Sec Adversarial Search.
Advertisements

Adversarial Search Chapter 6 Sections 1 – 4. Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
Adversarial Search Chapter 6 Section 1 – 4. Types of Games.
Games & Adversarial Search Chapter 5. Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent’s reply. Time.
February 7, 2006AI: Chapter 6: Adversarial Search1 Artificial Intelligence Chapter 6: Adversarial Search Michael Scherger Department of Computer Science.
Games & Adversarial Search
Games and adversarial search
For Monday Read chapter 7, sections 1-4 Homework: –Chapter 4, exercise 1 –Chapter 5, exercise 9.
CS 484 – Artificial Intelligence
Adversarial Search Chapter 6 Section 1 – 4.
Adversarial Search Chapter 5.
COMP-4640: Intelligent & Interactive Systems Game Playing A game can be formally defined as a search problem with: -An initial state -a set of operators.
1 Game Playing. 2 Outline Perfect Play Resource Limits Alpha-Beta pruning Games of Chance.
Adversarial Search Game Playing Chapter 6. Outline Games Perfect Play –Minimax decisions –α-β pruning Resource Limits and Approximate Evaluation Games.
Adversarial Search CSE 473 University of Washington.
Adversarial Search Chapter 6.
Artificial Intelligence for Games Game playing Patrick Olivier
Adversarial Search 對抗搜尋. Outline  Optimal decisions  α-β pruning  Imperfect, real-time decisions.
An Introduction to Artificial Intelligence Lecture VI: Adversarial Search (Games) Ramin Halavati In which we examine problems.
1 Adversarial Search Chapter 6 Section 1 – 4 The Master vs Machine: A Video.
10/19/2004TCSS435A Isabelle Bichindaritz1 Game and Tree Searching.
Games CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
EIE426-AICV 1 Game Playing Filename: eie426-game-playing-0809.ppt.
G51IAI Introduction to AI Minmax and Alpha Beta Pruning Garry Kasparov and Deep Blue. © 1997, GM Gabriel Schwartzman's Chess Camera, courtesy IBM.
This time: Outline Game playing The minimax algorithm
Game Playing CSC361 AI CSC361: Game Playing.
Games and adversarial search
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Ch.6: Adversarial Search Fall 2008 Marco Valtorta.
Game Tree Search based on Russ Greiner and Jean-Claude Latombe’s notes.
double AlphaBeta(state, depth, alpha, beta) begin if depth
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.
CSC 412: AI Adversarial Search
CHAPTER 6 : ADVERSARIAL SEARCH
1 Game Playing Why do AI researchers study game playing? 1.It’s a good reasoning problem, formal and nontrivial. 2.Direct comparison with humans and other.
Game Playing ECE457 Applied Artificial Intelligence Spring 2007 Lecture #5.
Adversarial Search Chapter 6 Section 1 – 4. Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 6 –Adversarial Search Thursday –AIMA, Ch. 6 –More Adversarial Search The “Luke.
1 Adversarial Search CS 171/271 (Chapter 6) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Games 1 Alpha-Beta Example [-∞, +∞] Range of possible values Do DF-search until first leaf.
For Wednesday Read chapter 7, sections 1-4 Homework: –Chapter 6, exercise 1.
Adversarial Search Chapter 6 Section 1 – 4. Search in an Adversarial Environment Iterative deepening and A* useful for single-agent search problems What.
Adversarial Search Chapter Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time limits.
Paula Matuszek, CSC 8520, Fall Based in part on aima.eecs.berkeley.edu/slides-ppt 1 CS 8520: Artificial Intelligence Adversarial Search Paula Matuszek.
Artificial Intelligence
Adversarial Search Chapter 6 Section 1 – 4. Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 5 Adversarial Search (Thanks Meinolf Sellman!)
Adversarial Search Chapter 5 Sections 1 – 4. AI & Expert Systems© Dr. Khalid Kaabneh, AAU Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
ADVERSARIAL SEARCH Chapter 6 Section 1 – 4. OUTLINE Optimal decisions α-β pruning Imperfect, real-time decisions.
Adversarial Search CMPT 463. When: Tuesday, April 5 3:30PM Where: RLC 105 Team based: one, two or three people per team Languages: Python, C++ and Java.
1 Chapter 6 Game Playing. 2 Chapter 6 Contents l Game Trees l Assumptions l Static evaluation functions l Searching game trees l Minimax l Bounded lookahead.
5/4/2005EE562 EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 9, 5/4/2005 University of Washington, Department of Electrical Engineering Spring 2005.
Game Playing Why do AI researchers study game playing?
PENGANTAR INTELIJENSIA BUATAN (64A614)
Adversarial Search Chapter 5.
Games & Adversarial Search
Artificial Intelligence
Games & Adversarial Search
Adversarial Search.
Game playing.
Games & Adversarial Search
Games & Adversarial Search
Game Playing Fifth Lecture 2019/4/11.
Games & Adversarial Search
Adversarial Search CMPT 420 / CMPG 720.
Adversarial Search CS 171/271 (Chapter 6)
Games & Adversarial Search
Adversarial Search Chapter 6 Section 1 – 4.
Presentation transcript:

Game Playing 최호연 이춘우

Overview Intro: Games as search problems Perfect decisions in 2-person games Imperfect decisions Alpha-beta pruning Games that include an element of chance State-of-the-art game program Discussion

Intro: Games as search problems Games Pure, abstract competition Environment Accessible, deterministic, small Action Small # of well-defined actions

Uncertainty Opponent Not like by throwing dice or by the weather Complexity Not enough time to calculate the exact consequence

Perfect decisions in 2-person games Two players, MAX & MIN Search problem Initial state A set of operators Terminal test(terminal states) Utility function(payoff function)

MAX wants to find a strategy that will lead to a winning terminal state regardless of what MIN does.

Minimax algorithm Generate the whole game tree Apply the utility function to the terminal Back-up values In root, MAX chooses highest value

Complete? Yes(tree is finite) Optimal? Yes(against optimal opponent) Time complexity – O(b m ) Space complexity – O(bm)

Imperfect decision No time to build complete search tree Evaluation functions Replace the utility function Estimates the expected utility value from a given position(chess – material value) Desirable properties Must agree with the utility function Must not take too long to evaluate Must accurately reflect the chance of winning

Alpha-beta pruning Pruning Pruning does not affect final result Alpha-beta pruning Good move ordering improves effectiveness of pruning Asymptotic time complexity O((b/log b) d ) With “ perfect ordering, ” time complexity O(b d/2 )

Games That Include an Element of Chance Many games mirror unpredictability by including a random element Ex) backgammon, 윷놀이

Backgammon

Game tree for a backgammon

Game tree for a backgammon (cont ’ d) Chance nodes Branches leading from each chance node denote the possible dice rolls Labelled with the roll and the chance that it will occur Expectimax value of C Expectimin value

Position evalution in games with chance nodes For minimax, any order-preserving transformation of the leaf values does not affect the choice of move With chance node, some order-preserving transformation of the leaf values does affect the choice of move

Position evalution in games with chance nodes (cont ’ d)

Complexity of expectiminimax The expectiminimax considers all the possible dice-roll sequences It takes O(b m n m ), where n is the number of distinct rolls Whereas, minimax takes O(b m ) Problems The extra cost compared to minimax is very high Alpha-beta pruning is much less effective

State-of-the-art Game Programs for Chess Chess computer would beat the human champion computer power, rather than complex strategies Ratings of human and machine chess champions

State-of-the-art Game Programs for Chess (Cont ’ d) Deep Blue Defeated Garry Ksaparov in 1997 match (2 wins 3 draws 1 lose) 32 P2SC Processors capable of searching 50 to 100 billion positions within three minutes 1000 times faster than its predecessor, Deep Thought Match clips : (multimedia clip) (text)

State-of-the-art Game Programs for the other games Checker Arthur Samuel (1952) official world champion – Chinook Othello, Backgammon, Go …

Discussion Divorced from the main stream AI Grand Prix motor racing --- car industry game --- AI Minimax works well when the leaf node evaluation is perfect misleading remedy --- probability distribution problem --- Siblings are highly correlated.

Discussion(cont ’ d) Alpha-beta prunning may generate a large, useless tree. needs a concept of “ utility of a node expansion ” meta-reasoning