CS10 : The Beauty and Joy of Computing Lecture #14 : Computational Game Theory 2012-07-12 A 19-year project led by Prof Jonathan Schaeffer, he used dozens.

Slides:



Advertisements
Similar presentations
CMSC 471 Spring 2014 Class #9 Tue 2/25/14 Game Playing Professor Marie desJardins,
Advertisements

Game Playing CS 63 Chapter 6
An Introduction to... Evolutionary Game Theory
AI for Connect-4 (or other 2-player games) Minds and Machines.
February 7, 2006AI: Chapter 6: Adversarial Search1 Artificial Intelligence Chapter 6: Adversarial Search Michael Scherger Department of Computer Science.
ICS-271:Notes 6: 1 Notes 6: Game-Playing ICS 271 Fall 2008.
1 CSC 550: Introduction to Artificial Intelligence Fall 2008 search in game playing  zero-sum games  game trees, minimax principle  alpha-beta pruning.
CS 484 – Artificial Intelligence
University College Cork (Ireland) Department of Civil and Environmental Engineering Course: Engineering Artificial Intelligence Dr. Radu Marinescu Lecture.
CS 4700: Foundations of Artificial Intelligence Bart Selman Reinforcement Learning R&N – Chapter 21 Note: in the next two parts of RL, some of the figure/section.
CS10 The Beauty and Joy of Computing Lecture #22 : Computational Game Theory A 19-year project led by Prof Jonathan Schaeffer, he used dozens.
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.
"Programming a Computer to Play Chess" A presentation of C. Shannon's 1950 paper by Andrew Oldag April
The Turk First chess playing machine, made in 1770.
G5AIAI Introduction to AI Graham Kendall Game Playing Garry Kasparov and Deep Blue. © 1997, GM Gabriel Schwartzman's Chess Camera, courtesy IBM.
Artificial Intelligence for Games Game playing Patrick Olivier
Games CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Computers Playing Games Arif Zaman CS 101. Acknowledgements Portions of this are taken from MIT’s open-courseware
Mastering Chess An overview of common chess AI Adam Veres.
Everything You Always Wanted To Know about Game Theory* *but were afraid to ask Dan Garcia, UC Berkeley David Ginat, Tel-Aviv University Peter Henderson,
CS10 The Beauty and Joy of Computing Lecture #22 : Computational Game Theory A 19-year project led by Prof Jonathan Schaeffer, he used dozens.
Games and adversarial search
CS39N The Beauty and Joy of Computing Lecture #4 : Computational Game Theory A 19-year project led by Prof Jonathan Schaeffer, he used dozens.
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Ch.6: Adversarial Search Fall 2008 Marco Valtorta.
CHECKMATE! A Brief Introduction to Game Theory Dan Garcia UC Berkeley The World Kasparov.
Computers Playing Games Arif Zaman CS 101. Acknowledgements Portions of this are taken from MIT’s open-courseware
CHECKMATE! A Brief Introduction to Game Theory Dan Garcia UC Berkeley The World Kasparov.
How computers play games with you CS161, Spring ‘03 Nathan Sturtevant.
ICS-271:Notes 6: 1 Notes 6: Game-Playing ICS 271 Fall 2006.
CS10 The Beauty and Joy of Computing Lecture #25 : Tree Recursion The newly released (and much- hyped) Microsoft Kinect system for the XBOX.
Games of Chance Introduction to Artificial Intelligence COS302 Michael L. Littman Fall 2001.
CS10 The Beauty and Joy of Computing Lecture #23 : Limits of Computing Thanks to the success of the Kinect, researchers all over the world believe.
Computer Chess. Humble beginnings The Turk Ajeeb Mephisto El Ajedrecista.
Game Playing: Adversarial Search Chapter 6. Why study games Fun Clear criteria for success Interesting, hard problems which require minimal “initial structure”
Games. The Turk Built by Wolfgang von Kempelen (1734 – 1804).
Dr Rong Qu Module Introduction.
Game Playing State-of-the-Art  Checkers: Chinook ended 40-year-reign of human world champion Marion Tinsley in Used an endgame database defining.
1 Adversary Search Ref: Chapter 5. 2 Games & A.I. Easy to measure success Easy to represent states Small number of operators Comparison against humans.
Introduction to AI, H. Feili 1 Introduction to Artificial Intelligence LECTURE 1: Introduction What is AI? Foundations of AI The.
CSC 412: AI Adversarial Search
PSU CS 370 – Introduction to Artificial Intelligence Game MinMax Alpha-Beta.
9/14/20151 Game Theory and Game Balance CIS 487/587 Bruce R. Maxim UM-Dearborn.
Adversarial Search CS30 David Kauchak Spring 2015 Some material borrowed from : Sara Owsley Sood and others.
Game Playing.
Projects Analyze Existing Game project –Due next class. Re-check the guidelines on course’s website! Create your Own Project –Due: Final game due Tuesday.
Agents that can play multi-player games. Recall: Single-player, fully-observable, deterministic game agents An agent that plays Peg Solitaire involves.
150 Students Can’t Be Wrong! GamesCrafters, a Computational Game Theory Undergraduate Research and Development Group at UC Berkeley 12:00-13:00.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 6 –Adversarial Search Thursday –AIMA, Ch. 6 –More Adversarial Search The “Luke.
Games. Adversaries Consider the process of reasoning when an adversary is trying to defeat our efforts In game playing situations one searches down the.
1 Adversarial Search CS 171/271 (Chapter 6) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Artificial Intelligence and Searching CPSC 315 – Programming Studio Spring 2013 Project 2, Lecture 1 Adapted from slides of Yoonsuck Choe.
Today’s Topics Playing Deterministic (no Dice, etc) Games –Mini-max –  -  pruning –ML and games? 1997: Computer Chess Player (IBM’s Deep Blue) Beat Human.
CS10: The Beauty and Joy of Computing Lecture #22 Limits of Computing Warning sign posted at Stern Hall. Also, Apple releases new operating.
CSE373: Data Structures & Algorithms Lecture 23: Intro to Artificial Intelligence and Game Theory Based on slides adapted Luke Zettlemoyer, Dan Klein,
Easy, Hard, and Impossible Elaine Rich. Easy Tic Tac Toe.
Adversarial Search and Game Playing Russell and Norvig: Chapter 6 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2004/home.htm Prof: Dekang.
The Beauty and Joy of Computing Lecture #16 Computational Game Theory A 19-year project led by Prof Jonathan Schaeffer, he used dozens (sometimes hundreds)
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 5 Adversarial Search (Thanks Meinolf Sellman!)
Luca Weibel Honors Track: Competitive Programming & Problem Solving Partisan game theory.
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.
PENGANTAR INTELIJENSIA BUATAN (64A614)
CS Fall 2016 (Shavlik©), Lecture 11, Week 6
David Kauchak CS52 – Spring 2016
Artificial Intelligence and Searching
Breakfast Bytes Easy, Hard, and Impossible
Artificial Intelligence and Searching
CS51A David Kauchak Spring 2019
Artificial Intelligence and Searching
Presentation transcript:

CS10 : The Beauty and Joy of Computing Lecture #14 : Computational Game Theory A 19-year project led by Prof Jonathan Schaeffer, he used dozens (sometimes hundreds) of computers and AI to prove it is, in perfect play, a … draw! This means that if two Gods were to play, nobody would ever win! UC Berkeley EECS Summer Instructor Ben Chun

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (2) Chun, Summer 2012  History  Definitions  Game Theory  What Games We Mean  Win, Lose, Tie, Draw  Weakly / Strongly Solving  Gamesman  Dan’s Undergraduate R&D Group  Demo!!  Future Computational Game Theory

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (3) Chun, Summer 2012  CS research areas:  Artificial Intelligence  Biosystems & Computational Biology  Computer Architecture & Engineering  Database Management Systems  Graphics  Human-Computer Interaction  Operating Systems & Networking  Programming Systems  Scientific Computing  Security  Theory  … Computer Science … A UCB viewwww.eecs.berkeley.edu/Research/Areas/

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (4) Chun, Summer 2012  A Hoax!  Built by Wolfgang von Kempelen  to impress the Empress  Could play a strong game of Chess  thanks to Master inside  Toured Europe  Defeated Benjamin Franklin & Napoleon!  Burned in an 1854 fire  Chessboard saved… The Turk (1770) The Mechanical Turk (1770) en.wikipedia.org/wiki/The_Turk

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (5) Chun, Summer 2012  “Father of Information Theory”  Digital computer and digital circuit design theory  Defined fundamental limits on compressing/storing data  Wrote “Programming a Computer for Playing Chess” paper in (1950)  All chess programs today have his theories at their core  His estimate of # of Chess positions called “Shannon #”  Now proved < ~ Claude Shannon’s Paper (1950)en.wikipedia.org/wiki/Claude_Shannon Claude Shannon ( )

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (6) Chun, Summer 2012  Kasparov World Champ  1996 Tournament – Deep Blue  First game DB wins a classic!  But DB loses 3 and draws 2 to lose the 6-game match 4-2  In 1997 Deep Blue upgraded, renamed “Deeper Blue”  1997 Tournament – Deeper Blue  GK wins game 1  GK resigns game 2  even though it was draw!  DB & GK draw games 3-5  Game 6 : (May 11 th )  Kasparov blunders move 7, loses in 19 moves. Loses tournament 3 ½ - 2 ½  GK accuses DB of cheating. No rematch.  Defining moment in AI history Deep Blue vs Garry Kasparov (1997)en.wikipedia.org/wiki/Deep_Blue_(chess_computer) IBM’s Deep Blue vs Garry Kasparov

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (7) Chun, Summer 2012 Economic  von Neumann and Morgenstern’s 1944 Theory of Games and Economic Behavior  Matrix games  Prisoner’s dilemma, auctions  Film : A Beautiful Mind (about John Nash)  Incomplete info, simultaneous moves  Goal: Maximize payoff Computational  R. C. Bell’s 1988 Board and Table Games from many Civilizations  Board games  Tic-Tac-Toe, Chess, Connect 4, Othello  Film : Searching for Bobby Fischer  Complete info, alternating moves  Goal: VariesCombinatorial Sprague and Grundy’s 1939 Mathematics and Games Board games Nim, Domineering, dots and boxes Film: Last Year in Marienbad Complete info, alternating moves Goal: Last movewww.cs.berkeley.edu/~ddgarcia/eyawtkagtbwata What is “Game Theory”?

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (8) Chun, Summer 2012  No chance, such as dice or shuffled cards  Both players have complete information  No hidden information, as in Stratego or Magic  Two players (Left & Right) usually alternate moves  Repeat & skip moves ok  Simultaneous moves not ok  The game can end in a pattern, capture, by the absence of moves, or … What “Board Games” do you mean?

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (9) Chun, Summer 2012 What’s in a Strong Solution  For every position  Assuming alternating play  Value … (for player whose turn it is) Winning (  losing child) Losing (All children winning) Tieing (!  losing child, but  tieing child) Drawing (can’t force a win or be forced to lose)  Remoteness  How long before game ends? W L L WWW W T WWW T D WWW D W

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (10) Chun, Summer 2012  A groups that strongly solves abstract strategy games and puzzles  70 games / puzzles in our system  Allows perfect play against an opponent  Ability to do a post- game analysis GamesCrafters

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (11) Chun, Summer 2012 What did you mean “strongly solve”? Wargames (1983)

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (12) Chun, Summer 2012 Weakly Solving A Game (Checkers) Endgame databases (solved) Master: main line of play to consider Workers: positions to search Log of Search Space Size Thanks to Jonathan U Alberta for this slide…

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (13) Chun, Summer 2012 Strong Solving Example: 1,2,…,10  Rules (on your turn):  Running total = 0  Rules (on your turn):  Add 1 or 2 to running total  Goal  Be the FIRST to get to 10  Example  Ana: “2 to make it 2”  Bob: “1 to make it 3”  Ana: “2 to make it 5”  Bob: “2 to make it 7”  photo  Ana: “1 to make it 8”  Bob: “2 to make it 10” I WIN! 7 ducks (out of 10)

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (14) Chun, Summer 2012 Example: Tic-Tac-Toe  Rules (on your turn):  Place your X or O in an empty slot on 3x3 board  Goal  If your make 3-in-a-row first in any row / column / diag, win  Else if board is full with no 3-in-row, tie  Misére is tricky  3-in-row LOSES  Pair up and play now, then swap who goes 1st Values Visualization for Tic-Tac-Toe

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (15) Chun, Summer 2012 Tic-Tac-Toe Answer Visualized!  Recursive Values Visualization Image  Misére Tic-tac-toe  Outer rim is position  Inner levels moves  Legend Lose Tie Win Misére Tic-Tac-Toe 2-ply Answer

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (16) Chun, Summer 2012 GamesCrafters (revisited)GamesCrafters.berkeley.edu  Undergraduate Computational Game Theory Research Group  300 students since 2001  We now average 20/semester!  They work in teams of 2+  Most return, take more senior roles (sub-group team leads)  Maximization (bottom-up solve)  Oh, DeepaBlue (parallelization)  GUI (graphical interface work)  Retro (GUI refactoring)  Architecture (core)  New/ice Games (add / refactor)  Documentation (games & code)

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (17) Chun, Summer 2012 Connect 4 Solved, Online!  Just finished a solve of Connect 4!!  It took 30 Machines x 8 Cores x 1 weeks  Win for the first player (go in the middle!)  3,5 = tie  1,2,6,7 = lose  Come play online!

UC Berkeley CS10 “The Beauty and Joy of Computing” : Computational Game Theory (18) Chun, Summer 2012  Board games are exponential  So has been the progress of the speed / capacity of computers!  Therefore, every few years, we only get to solve one more “ply”  One by one, we’re going to solve them and/or beat humans  We’ll never solve some  E.g., hardest game : Go  Strongly solving (GamesCrafters)  We visit EVERY position, and know value of EVERY position  E.g., Connect 4  Weakly solving (Univ Alberta)  We prove game’s value by only visiting SOME positions, so we only know value of SOME positions  E.g., Checkers Future Go’s search space ~ Gamescrafters.berkeley.edu