G5AIAI Introduction to AI Graham Kendall Game Playing Garry Kasparov and Deep Blue. © 1997, GM Gabriel Schwartzman's Chess Camera, courtesy IBM.

Slides:



Advertisements
Similar presentations
Adversarial Search Chapter 6 Sections 1 – 4. Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
Advertisements

CMSC 471 Spring 2014 Class #9 Tue 2/25/14 Game Playing Professor Marie desJardins,
Game Playing CS 63 Chapter 6
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.
Game Playing Perfect decisions Heuristically based decisions Pruning search trees Games involving chance.
Games & Adversarial Search
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.
The Turk First chess playing machine, made in 1770.
Adversarial Search CSE 473 University of Washington.
Adversarial Search Chapter 6.
Artificial Intelligence for Games Game playing Patrick Olivier
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.
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.
Adversarial Search Board games. Games 2 player zero-sum games Utility values at end of game – equal and opposite Games that are easy to represent Chess.
Minimax and Alpha-Beta Reduction Borrows from Spring 2006 CS 440 Lecture Slides.
Lecture 13 Last time: Games, minimax, alpha-beta Today: Finish off games, summary.
CHINESE CHECKERS – IN THE LIGHT OF AI Computer Game Playing 1 Under the Guidance of Prof. Pushpak Bhattacharyya Presented by: Anwesha Das, Prachi Garg.
1 Game Playing Chapter 6 Additional references for the slides: Luger’s AI book (2005). Robert Wilensky’s CS188 slides:
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Ch.6: Adversarial Search Fall 2008 Marco Valtorta.
How computers play games with you CS161, Spring ‘03 Nathan Sturtevant.
Adversarial Search: Game Playing Reading: Chess paper.
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
PSU CS 370 – Introduction to Artificial Intelligence Game MinMax Alpha-Beta.
Game Playing.
Games as Game Theory Systems (Ch. 19). Game Theory It is not a theoretical approach to games Game theory is the mathematical study of decision making.
MIU Mini-Max Graham Kendall Game Playing Garry Kasparov and Deep Blue. © 1997, GM Gabriel Schwartzman's Chess Camera, courtesy IBM.
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.
Minimax with Alpha Beta Pruning The minimax algorithm is a way of finding an optimal move in a two player game. Alpha-beta pruning is a way of finding.
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.
Do you drive? Have you thought about how the route plan is created for you in the GPS system? How would you implement a cross-and-nought computer program?
Introduction to Artificial Intelligence (G51IAI) Dr Rong Qu Game Playing Garry Kasparov and Deep Blue. © 1997, GM Gabriel Schwartzman's Chess Camera, courtesy.
CSE373: Data Structures & Algorithms Lecture 23: Intro to Artificial Intelligence and Game Theory Based on slides adapted Luke Zettlemoyer, Dan Klein,
Artificial Intelligence
Adversarial Search and Game Playing Russell and Norvig: Chapter 6 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2004/home.htm Prof: Dekang.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 5 Adversarial Search (Thanks Meinolf Sellman!)
G51IAI Introduction to AI Andrew Parkes Game Playing 2: Alpha-Beta Search and General Issues.
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.
Understanding AI of 2 Player Games. Motivation Not much experience in AI (first AI project) and no specific interests/passion that I wanted to explore.
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.
Game Playing Why do AI researchers study game playing?
PENGANTAR INTELIJENSIA BUATAN (64A614)
CSC 110 – Fluency in Information Technology Chess
Adversarial Search Chapter 5.
Games & Adversarial Search
Games & Adversarial Search
Adversarial Search.
Games & Adversarial Search
Games & Adversarial Search
Artificial Intelligence
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:

G5AIAI Introduction to AI Graham Kendall Game Playing Garry Kasparov and Deep Blue. © 1997, GM Gabriel Schwartzman's Chess Camera, courtesy IBM.

G5AIAI Game Playing Game Playing Up till now we have assumed the situation is not going to change whilst we search Game playing is not like this

G5AIAI Game Playing Game Playing Game Playing has been studied for a long time –Babbage (tic-tac-toe) –Turing (chess)

G5AIAI Game Playing Game Playing - Chess Shannon - March 9 th New York Size of search space ( average of 40 moves) – > number of atoms in the universe 200 million positions/second = years to evaluate all possible games –Age of universe = Searching to depth = 40, at one game per microsecond it would take years to make its first move

G5AIAI Game Playing Game Playing - Chess Newell and Simon predicted that a computer would be chess champion within ten years Simon : “I was a little far-sighted with chess, but there was no way to do it with machines that were as slow as the ones way back then” First computer to play chess was an IBM about one millionth capacity of deep blue.

G5AIAI Game Playing Game Playing - Chess 1967 : Mac Hack competed successfully in human tournaments 1983 : “Belle” obtained expert status from the United States Chess Federation Mid 80’s : Scientists at Carnegie Mellon University started work on what was to become Deep Blue. Project moved to IBM in 1989

G5AIAI Game Playing Game Playing - Chess May 11th 1997, Gary Kasparov lost a six match game to deep blue –3.5 to 2.5 –Two wins for deep blue, one win for Kasparov and three draws IBM Research : ( meet/html/d.3.html)

G5AIAI Game Playing Game Playing - Checkers Arthur Samuel Written for an IBM Re-wrote for an IBM 704 –10,000 words of main memory Added a learning mechanism that learnt its own evaluation function

G5AIAI Game Playing Game Playing - Checkers Learnt the evaluation function by playing against itself After a few days it could beat its creator …. And compete on equal terms with strong human players

G5AIAI Game Playing Game Playing - Checkers Jonathon Schaeffer Testament to Samuel that there was no more work done until the early nineties Developed Chinook

G5AIAI Game Playing Game Playing - Checkers Chinook Uses Alpha-Beta search Plays a perfect end game by means of a database

G5AIAI Game Playing Game Playing - Checkers Chinook In 1992 Chinook won the US Open ….. And challenged for the world championship

G5AIAI Game Playing Game Playing - Checkers Dr Marion Tinsley Had been world championship for over 40 years … only losing three games in all that time Against Chinook he suffered his fourth and fifth defeat ….. But ultimately won 21.5 to 18.5

G5AIAI Game Playing Game Playing - Checkers Dr Marion Tinsley In August 1994 there was a re-match but Marion Tinsley withdrew for health reasons Chinook became the official world champion

G5AIAI Game Playing Game Playing - Checkers Schaeffer claimed Chinook was rated at 2814 The best human players are rated at 2632 and 2625 Chinook did not include any learning mechanism

G5AIAI Game Playing Game Playing - Checkers Kumar “Learnt” how to play a good game of checkers The program used a population of games with the best competing for survival

G5AIAI Game Playing Game Playing - Checkers Learning was done using a neural network with the synapses being changed by an evolutionary strategy The best program beat a commercial application 6-0 The program was presented at CEC 2000 (San Diego) and remain undefeated

G5AIAI Game Playing Game Playing - Checkers Third year projects –Chess (Adaptive Learning - CEC) –Poker (based on work of Barone) –Cribbage (Never been done before) –Blackjack (Emulate Thorp, 1966)

G5AIAI Game Playing Game Playing - Minimax Game Playing An opponent tries to thwart your every move John von Neumann outlined a search method (Minimax) that maximised your position whilst minimising your opponents

G5AIAI Game Playing Game Playing - Minimax In order to implement we need a method of measuring how good a position is. Often called a utility function Initially this will be a value that describes our position exactly

G5AIAI Game Playing DEFG = terminal position= agent= opponent MAX MIN MAX 1-3 BC A

G5AIAI Game Playing Game Playing - Minimax Nim Start with a pile of tokens At each move the player must divide the tokens into two non-empty, non-equal piles + + +

G5AIAI Game Playing Game Playing - Minimax Starting with 7 tokens, draw the complete search tree At each move the player must divide the tokens into two non-empty, non-equal piles

G5AIAI Game Playing

G5AIAI Game Playing Game Playing - Minimax Assuming MIN plays first, complete the MIN/MAX tree Assume that a utility function of –0 = a win for MIN –1 = a win for MAX

G5AIAI Game Playing MIN MAX

G5AIAI Game Playing A BC DE 658 MAX MIN 6>=8 MAX <=6 HIJK = agent= opponent

G5AIAI Game Playing A BC DEFG 658 MAX MIN 6>=8 MAX 6 HIJKLM = agent= opponent 21 2 <=2 >=6

G5AIAI Game Playing A BC DEFG 658 MAX MIN 6>=8 MAX 6 HIJKLM = agent= opponent >=6

G5AIAI Game Playing A BC DEFG 658 MAX MIN 6>=8 MAX 6 HIJKLM = agent= opponent alpha cutoff beta cutoff Alpha-beta Pruning

G5AIAI Introduction to AI Graham Kendall End of Game Playing Garry Kasparov and Deep Blue. © 1997, GM Gabriel Schwartzman's Chess Camera, courtesy IBM.