Today. Nondeterministic games: backgammon. Algorithm for nondeterministic games. Nondeterministic games in general. See Russell and Norvig, chapter 6

Similar documents
Game playing. Outline

Game Playing. Dr. Richard J. Povinelli. Page 1. rev 1.1, 9/14/2003

Games vs. search problems. Game playing Chapter 6. Outline. Game tree (2-player, deterministic, turns) Types of games. Minimax

Game playing. Chapter 6. Chapter 6 1

ADVERSARIAL SEARCH. Chapter 5

CS 380: ARTIFICIAL INTELLIGENCE

Game playing. Chapter 6. Chapter 6 1

Game Playing: Adversarial Search. Chapter 5

Game Playing. Philipp Koehn. 29 September 2015

CS 380: ARTIFICIAL INTELLIGENCE ADVERSARIAL SEARCH. Santiago Ontañón

Lecture 5: Game Playing (Adversarial Search)

Outline. Game playing. Types of games. Games vs. search problems. Minimax. Game tree (2-player, deterministic, turns) Games

Game playing. Chapter 5. Chapter 5 1

Games vs. search problems. Adversarial Search. Types of games. Outline

Game playing. Chapter 5, Sections 1{5. AIMA Slides cstuart Russell and Peter Norvig, 1998 Chapter 5, Sections 1{5 1

Artificial Intelligence, CS, Nanjing University Spring, 2018, Yang Yu. Lecture 4: Search 3.

CS 188: Artificial Intelligence Spring Game Playing in Practice

Ch.4 AI and Games. Hantao Zhang. The University of Iowa Department of Computer Science. hzhang/c145

Game playing. Chapter 5, Sections 1 6

Adversarial search (game playing)

Artificial Intelligence. Topic 5. Game playing

Outline. Game Playing. Game Problems. Game Problems. Types of games Playing a perfect game. Playing an imperfect game

Adversarial Search. Hal Daumé III. Computer Science University of Maryland CS 421: Introduction to Artificial Intelligence 9 Feb 2012

Last update: March 9, Game playing. CMSC 421, Chapter 6. CMSC 421, Chapter 6 1

CS 188: Artificial Intelligence

Ar#ficial)Intelligence!!

COMP219: COMP219: Artificial Intelligence Artificial Intelligence Dr. Annabel Latham Lecture 12: Game Playing Overview Games and Search

Artificial Intelligence. Minimax and alpha-beta pruning

Announcements. Homework 1. Project 1. Due tonight at 11:59pm. Due Friday 2/8 at 4:00pm. Electronic HW1 Written HW1

CS 188: Artificial Intelligence Spring 2007

CSE 573: Artificial Intelligence Autumn 2010

Adversarial Search and Game Playing

Artificial Intelligence 1: game playing

CS 331: Artificial Intelligence Adversarial Search II. Outline

Adversarial Search (a.k.a. Game Playing)

Pengju

Adversarial Search. Rob Platt Northeastern University. Some images and slides are used from: AIMA CS188 UC Berkeley

COMP219: Artificial Intelligence. Lecture 13: Game Playing

6. Games. COMP9414/ 9814/ 3411: Artificial Intelligence. Outline. Mechanical Turk. Origins. origins. motivation. minimax search

Games CSE 473. Kasparov Vs. Deep Junior August 2, 2003 Match ends in a 3 / 3 tie!

COMP9414: Artificial Intelligence Adversarial Search

Artificial Intelligence Adversarial Search

CS 188: Artificial Intelligence Spring Announcements

Adversarial Search and Game Playing. Russell and Norvig: Chapter 5

CSE 473: Artificial Intelligence Autumn 2011

Artificial Intelligence

Game Playing AI Class 8 Ch , 5.4.1, 5.5

Artificial Intelligence

Announcements. CS 188: Artificial Intelligence Fall Local Search. Hill Climbing. Simulated Annealing. Hill Climbing Diagram

Local Search. Hill Climbing. Hill Climbing Diagram. Simulated Annealing. Simulated Annealing. Introduction to Artificial Intelligence

CS 188: Artificial Intelligence. Overview

Adversarial Search. Soleymani. Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 5

Multiple Agents. Why can t we all just get along? (Rodney King)

Artificial Intelligence

Adversarial Search Lecture 7

Game Playing. Why do AI researchers study game playing? 1. It s a good reasoning problem, formal and nontrivial.

Adversarial Search. CS 486/686: Introduction to Artificial Intelligence

Algorithms for Data Structures: Search for Games. Phillip Smith 27/11/13

Foundations of AI. 6. Adversarial Search. Search Strategies for Games, Games with Chance, State of the Art. Wolfram Burgard & Bernhard Nebel

Today. Types of Game. Games and Search 1/18/2010. COMP210: Artificial Intelligence. Lecture 10. Game playing

Adversarial Search. Chapter 5. Mausam (Based on slides of Stuart Russell, Andrew Parks, Henry Kautz, Linda Shapiro) 1

Game-playing: DeepBlue and AlphaGo

Adversarial Search. CS 486/686: Introduction to Artificial Intelligence

Intuition Mini-Max 2

Adversarial Search (Game Playing)

Lecture 14. Questions? Friday, February 10 CS 430 Artificial Intelligence - Lecture 14 1

Announcements. CS 188: Artificial Intelligence Spring Game Playing State-of-the-Art. Overview. Game Playing. GamesCrafters

Chapter 6. Overview. Why study games? State of the art. Game playing State of the art and resources Framework

Artificial Intelligence

CS 4700: Foundations of Artificial Intelligence

2/5/17 ADVERSARIAL SEARCH. Today. Introduce adversarial games Minimax as an optimal strategy Alpha-beta pruning Real-time decision making

Principles of Computer Game Design and Implementation. Lecture 20

CS188 Spring 2014 Section 3: Games

Adversarial Search. CMPSCI 383 September 29, 2011

Programming Project 1: Pacman (Due )

Game Engineering CS F-24 Board / Strategy Games

Unit-III Chap-II Adversarial Search. Created by: Ashish Shah 1

Computer Science and Software Engineering University of Wisconsin - Platteville. 4. Game Play. CS 3030 Lecture Notes Yan Shi UW-Platteville

CS440/ECE448 Lecture 9: Minimax Search. Slides by Svetlana Lazebnik 9/2016 Modified by Mark Hasegawa-Johnson 9/2017

Adversarial Search: Game Playing. Reading: Chapter

Foundations of AI. 6. Board Games. Search Strategies for Games, Games with Chance, State of the Art

CS 1571 Introduction to AI Lecture 12. Adversarial search. CS 1571 Intro to AI. Announcements

CS 2710 Foundations of AI. Lecture 9. Adversarial search. CS 2710 Foundations of AI. Game search

CSE 573: Artificial Intelligence

Games (adversarial search problems)

ARTIFICIAL INTELLIGENCE (CS 370D)

Games and Adversarial Search

2 person perfect information

Game Playing State-of-the-Art CSE 473: Artificial Intelligence Fall Deterministic Games. Zero-Sum Games 10/13/17. Adversarial Search

Adversarial Search 1

Game Playing Part 1 Minimax Search

Game Playing Beyond Minimax. Game Playing Summary So Far. Game Playing Improving Efficiency. Game Playing Minimax using DFS.

Game-playing AIs: Games and Adversarial Search FINAL SET (w/ pruning study examples) AIMA

ADVERSARIAL SEARCH. Today. Reading. Goals. AIMA Chapter , 5.7,5.8

mywbut.com Two agent games : alpha beta pruning

5.4 Imperfect, Real-Time Decisions

CITS3001. Algorithms, Agents and Artificial Intelligence. Semester 2, 2016 Tim French

Artificial Intelligence Search III

Adversarial Search Aka Games

Foundations of Artificial Intelligence

Transcription:

Today See Russell and Norvig, chapter Game playing Nondeterministic games Games with imperfect information Nondeterministic games: backgammon 5 8 9 5 9 8 5 Nondeterministic games in general In nondeterministic games, chance introduced by dice, card-shuffling Simplified example with coin-flipping: CHANCE MIN Algorithm for nondeterministic games Expectiminimax gives perfect play Just like Minimax, except we must also handle chance nodes:... if state is a Max node then return the highest ExpectiMinimax-Value of Successors(state) if state is a Min node then return the lowest ExpectiMinimax-Value of Successors(state) if state is a chance node then return average of ExpectiMinimax-Value of Successors(state)... 5

Pruning in nondeterministic game trees A version of α-β pruning is possible: 5 Pruning in nondeterministic game trees A version of α-β pruning is possible: [.5,.5 ] [,.5 ] [, ] [, ] [, ] [, ] 8 Pruning contd. Pruning contd. More pruning occurs if we can bound the leaf values More pruning occurs if we can bound the leaf values [.5,.5 ] [, ] [, ] [, ] [, ]

Nondeterministic games in practice Dice rolls increase b: possible rolls with dice Backgammon legal moves (can be, with - roll) 9 Digression: Exact values DO matter depth = ( ). 9 DICE...9.9..9..9..9. As depth increases, probability of reaching a given node shrinks value of lookahead is diminished α β pruning is much less effective TDGammon uses depth- search + very good Eval world-champion level MIN Behaviour is preserved only by positive linear transformation of Eval Hence Eval should be proportional to the expected payoff Games of imperfect information E.g., card games, where opponent s initial cards are unknown Typically we can calculate a probability for each possible deal Seems just like having one big dice roll at the beginning of the game Idea: compute the minimax value of each action in each deal, then choose the action with highest expected value over all deals Special case: if an action is optimal for all deals, it s optimal. GIB, current best bridge program, approximates this idea by ) generating deals consistent with bidding information ) picking the action that wins most tricks on average 8 8 9 9 9

8 8 MIN 9 9 9 8 8 MIN 9 9 9 So far, we have seen the optimal play from Max in two different situations. Now suppose that Max knows that Min has one or other of the two hands, but does not know which one. Is the same play still optimal? 8 8 MIN 9 9 9 5 Commonsense example MIN 8 8 9 9 9 8 8.5 MIN 9 9 9.5

Commonsense example take the left fork and you ll be run over by a bus; take the right fork and you ll find a mound of jewels. Commonsense example take the left fork and you ll be run over by a bus; take the right fork and you ll find a mound of jewels. guess correctly and you ll find a mound of jewels; guess incorrectly and you ll be run over by a bus. 8 Proper analysis * Intuition that the value of an action is the average of its values in all actual states is WRONG With partial observability, value of an action depends on the information state or belief state the agent is in Can generate and search a tree of information states Leads to rational behaviors such as Acting to obtain information Signalling to one s partner Acting randomly to minimize information disclosure 9 Summary Games are fun to work on! (and dangerous) They illustrate several important points about AI perfection is unattainable must approximate good idea to think about what to think about uncertainty constrains the assignment of values to states Games are a good field to experiment with AI techniques and develop new approaches.