CHECKMATE! A Brief Introduction to Game Theory Dan Garcia UC Berkeley The World Kasparov.

Slides:



Advertisements
Similar presentations
Game Playing CS 63 Chapter 6
Advertisements

Martin Boyd Christopher Hirunthanakorn
Introduction to Combinatorial Game Acm Honored Class Weitao.
An Introduction to... Evolutionary Game Theory
MIT and James Orlin © Game Theory 2-person 0-sum (or constant sum) game theory 2-person game theory (e.g., prisoner’s dilemma)
Game Theory. “If you don’t think the math matters, then you don’t know the right math.” Chris Ferguson 2002 World Series of Poker Champion.
The Wonderful World of Hackenbush Games And Their Relation to the Surreal Numbers.
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.
University College Cork (Ireland) Department of Civil and Environmental Engineering Course: Engineering Artificial Intelligence Dr. Radu Marinescu Lecture.
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 CSE 473 University of Washington.
Chapter 11 Game Theory and the Tools of Strategic Business Analysis.
Games What is ‘Game Theory’? There are several tools and techniques used by applied modelers to generate testable hypotheses Modeling techniques widely.
Progressively Finite Games
Artificial Intelligence in Game Design
CS10 : The Beauty and Joy of Computing Lecture #14 : Computational Game Theory A 19-year project led by Prof Jonathan Schaeffer, he used dozens.
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.
The Game of Contorted Fractions. 2 Rules of the Game Typical position has a number of real numbers in boxes. The typical legal move is to alter just one.
CS39N The Beauty and Joy of Computing Lecture #4 : Computational Game Theory A 19-year project led by Prof Jonathan Schaeffer, he used dozens.
CHECKMATE! A Brief Introduction to Game Theory Dan Garcia UC Berkeley The World Kasparov.
Playing Konane Mathematically with Combinatorial Game Theory
How computers play games with you CS161, Spring ‘03 Nathan Sturtevant.
Combinatorial Games Martin Müller. Contents Combinatorial game theory Thermographs Go and Amazons as combinatorial games.
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.
Using Reduction for the Game of NIM. At each turn, a player chooses one pile and removes some sticks. The player who takes the last stick wins. Problem:
Game Theory Statistics 802. Lecture Agenda Overview of games 2 player games representations 2 player zero-sum games Render/Stair/Hanna text CD QM for.
Game Playing: Adversarial Search Chapter 6. Why study games Fun Clear criteria for success Interesting, hard problems which require minimal “initial structure”
Great Theoretical Ideas in Computer Science.
Game Playing State-of-the-Art  Checkers: Chinook ended 40-year-reign of human world champion Marion Tinsley in Used an endgame database defining.
Great Theoretical Ideas in Computer Science.
PSU CS 370 – Introduction to Artificial Intelligence Game MinMax Alpha-Beta.
Game Playing. Introduction Why is game playing so interesting from an AI point of view? –Game Playing is harder then common searching The search space.
Adversarial Search CS30 David Kauchak Spring 2015 Some material borrowed from : Sara Owsley Sood and others.
Game Playing.
Part II - Sums of Games Consider a game called Boxing Match which was defined in a programming contest m.short.html.
Impartial Games, Nim, Composite Games, Optimal Play in Impartial games
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.
Agents that can play multi-player games. Recall: Single-player, fully-observable, deterministic game agents An agent that plays Peg Solitaire involves.
Surreal Number Tianruo Chen. Introduction In mathematics system, the surreal number system is an arithmetic continuum containing the real number as infinite.
150 Students Can’t Be Wrong! GamesCrafters, a Computational Game Theory Undergraduate Research and Development Group at UC Berkeley 12:00-13:00.
Game-playing AIs Part 1 CIS 391 Fall CSE Intro to AI 2 Games: Outline of Unit Part I (this set of slides)  Motivation  Game Trees  Evaluation.
Notes on Game Playing by Yun Peng of theYun Peng University of Maryland Baltimore County.
Game Playing. Towards Intelligence? Many researchers attacked “intelligent behavior” by looking to strategy games involving deep thought. Many researchers.
Games. Adversaries Consider the process of reasoning when an adversary is trying to defeat our efforts In game playing situations one searches down the.
Senior Project Poster Day 2007, CIS Dept. University of Pennsylvania Reversi Meng Tran Faculty Advisor: Dr. Barry Silverman Strategies: l Corners t Corners.
Cilk Pousse James Process CS534. Overview Introduction to Pousse Searching Evaluation Function Move Ordering Conclusion.
1 What is Game Theory About? r Analysis of situations where conflict of interests is present r Goal is to prescribe how conflicts can be resolved 2 2 r.
An Introduction to Game Theory Math 480: Mathematics Seminar Dr. Sylvester.
Game tree search Thanks to Andrew Moore and Faheim Bacchus for slides!
Statistics Overview of games 2 player games representations 2 player zero-sum games Render/Stair/Hanna text CD QM for Windows software Modeling.
Benjamin Casey C S 329 E Spring  Variants played since ancient times; resemblance to Chinese “Jianshizi” or “picking stones”  Current name and.
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!)
Artificial Intelligence in Game Design Board Games and the MinMax Algorithm.
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.
1 Fahiem Bacchus, University of Toronto CSC384: Intro to Artificial Intelligence Game Tree Search I ● Readings ■ Chapter 6.1, 6.2, 6.3, 6.6 ● Announcements:
Content Game of Nim Impartial Games Sprague-Grundy theorem
Adversarial Environments/ Game Playing
Introductory Game Theory
Great Theoretical Ideas in Computer Science
PENGANTAR INTELIJENSIA BUATAN (64A614)
Adversarial Search.
David Kauchak CS52 – Spring 2016
Game Playing: Adversarial Search
Game Playing: Adversarial Search
Game Playing Chapter 5.
Presentation transcript:

CHECKMATE! A Brief Introduction to Game Theory Dan Garcia UC Berkeley The World Kasparov

A Brief Introduction to Game Theory2/39 Welcome! Introduction Topic motivation, goals Talk overview ◊Combinatorial game theory basics w/examples ◊“Computational” game theory ◊Analysis of some simple games ◊Research highlights

A Brief Introduction to Game Theory3/39 Game Theory: Economic or Combinatorial? Economic ◊von Neumann and Morgenstern’s 1944 Theory of Games and Economic Behavior ◊Matrix games ◊Prisoner’s dilemma ◊Incomplete info, simultaneous moves ◊Goal: Maximize payoff Combinatorial ◊Sprague and Grundy’s 1939 Mathematics and Games ◊Board (table) games ◊Nim, Domineering ◊Complete info, alternating moves ◊Goal: Last move

A Brief Introduction to Game Theory4/39 Why study games? Systems design ◊Decomposition into parts with limited interactions Complexity Theory Management ◊Determine area to focus energy / resources Artificial Intelligence testing grounds “People want to understand the things that people like to do, and people like to play games” – Berlekamp & Wolfe

A Brief Introduction to Game Theory5/39 Combinatorial Game Theory History Early Play ◊Egyptian wall painting of Senat (c BC) Theory ◊C. L. Bouton’s analysis of Nim [1902] ◊Sprague [1936] and Grundy [1939] Impartial games and Nim ◊Knuth Surreal Numbers [1974] ◊Conway On Numbers and Games [1976] ◊Prof. Elwyn Berlekamp (UCB), Conway, & Guy Winning Ways [1982]

A Brief Introduction to Game Theory6/39 What is a combinatorial game? Two players (Left & Right) move alternately No chance, such as dice or shuffled cards Both players have perfect information ◊No hidden information, as in Stratego & Magic The game is finite – it must eventually end There are no draws or ties Normal Play: Last to move wins!

A Brief Introduction to Game Theory7/39 What games are out, what are in? In ◊Nim, Domineering, Dots-and-Boxes, Go, etc. In, but not normal play ◊Chess, Checkers, Othello, Tic-Tac-Toe, etc. ◊ All card games ◊ All dice games Out

A Brief Introduction to Game Theory8/39 Combinatorial Game Theory The Big Picture Whose turn is not part of the game SUMS of games ◊You play games G 1 + G 2 + G 3 + … ◊You decide which game is most important ◊You want the last move (in normal play) ◊Analogy: Eating with a friend, want the last bite

A Brief Introduction to Game Theory9/39 Classification of Games Impartial ◊Same moves available to each player ◊Example: Nim Partisan ◊The two players have different options ◊Example: Domineering

A Brief Introduction to Game Theory10/39 Nim : The Impartial Game pt. I Rules: ◊Several heaps of beans ◊On your turn, select a heap, and remove any positive number of beans from it, maybe all Goal ◊Take the last bean Example w/4 piles: (2,3,5,7)

A Brief Introduction to Game Theory11/39 Nim: The Impartial Game pt. II Dan plays room in (2,3,5,7) Nim Pair up, play (2,3,5,7) ◊Query: First player win or lose? Perfect strategy? ◊Feedback, theories? Every impartial game is equivalent to a (bogus) Nim heap

A Brief Introduction to Game Theory12/39 Nim: The Impartial Game pt. III Winning or losing? ◊ Binary rep. of heaps 11 ◊ Nim Sum == XOR ◊ Zero == Losing, 2nd P win Winning move? ◊ Find MSB in Nim Sum ◊ Find heap w/1 in that place ◊ Invert all heap’s bits from sum to make sum zero

A Brief Introduction to Game Theory13/39 Domineering: A partisan game Rules (on your turn): ◊Place a domino on the board ◊Left places them North-South ◊Right places them East-West Goal ◊Place the last domino Example game Query: Who wins here? Left (bLue) Right (Red)

A Brief Introduction to Game Theory14/39 Domineering: A partisan game Key concepts ◊By moving correctly, you guarantee yourself future moves. ◊For many positions, you want to move, since you can steal moves. This is a “hot” game. ◊This game decomposes into non- interacting parts, which we separately analyze and bring results together. Left (bLue) Right (Red) =

A Brief Introduction to Game Theory15/39 What do we want to know about a particular game? What is the value of the game? ◊Who is ahead and by how much? ◊How big is the next move? ◊Does it matter who goes first? What is a winning / drawing strategy? ◊To know a game’s value and winning strategy is to have solved the game ◊Can we easily summarize strategy?

A Brief Introduction to Game Theory16/39 Combinatorial Game Theory The Basics I - Game definition A game, G, between two players, Left and Right, is defined as a pair of sets of games: ◊G = {G L | G R } ◊G L is the typical Left option (i.e., a position Left can move to), similarly for Right. ◊G L need not have a unique value ◊Thus if G = {a, b, c, … | d, e, f, …}, G L means a or b or c or … and G R means d or e or f or...

A Brief Introduction to Game Theory17/39 Combinatorial Game Theory The Basics II - Examples: 0 The simplest game, the Endgame, born day 0 ◊Neither player has a move, the game is over ◊{ Ø | Ø } = { | }, we denote by 0 (a number!) ◊Example of P, previous/second-player win, losing ◊Examples from games we’ve seen: NimDomineeringGame Tree

A Brief Introduction to Game Theory18/39 Combinatorial Game Theory The Basics II - Examples: * The next simplest game, * (“Star”), born day 1 ◊First player to move wins ◊{ 0 | 0 } = *, this game is not a number, it’s fuzzy! ◊Example of N, a next/first-player win, winning ◊Examples from games we’ve seen: 1 NimDomineeringGame Tree

A Brief Introduction to Game Theory19/39 Combinatorial Game Theory The Basics II - Examples: 1 Another simple game, 1, born day 1 ◊Left wins no matter who starts ◊{ 0 | } = 1, this game is a number ◊Called a Left win. Partisan games only. ◊Examples from games we’ve seen: NimDomineeringGame Tree

A Brief Introduction to Game Theory20/39 Combinatorial Game Theory The Basics II - Examples: –1 Similarly, a game, –1, born day 1 ◊Right wins no matter who starts ◊{ | 0 } = –1, this game is a number. ◊Called a Right win. Partisan games only. ◊Examples from games we’ve seen: NimDomineeringGame Tree

A Brief Introduction to Game Theory21/39 Combinatorial Game Theory The Basics II - Examples Calculate value for Domineering game G: = { | } = { 1 | – 1 } G = = { – 1, 0 | 1 } = {.5 } …this is a cold fractional value. Left wins regardless who starts. = ± 1 = {, | }G = Left Right …this is a fuzzy hot value, confused with 0. 1st player wins. = { 0 | 1 }

A Brief Introduction to Game Theory22/39 Combinatorial Game Theory The Basics III - Outcome classes With normal play, every game belongs to one of four outcome classes (compared to 0): ◊Zero (=) ◊Negative (<) ◊Positive (>) ◊Fuzzy (||), incomparable, confused ZERO G = 0 2nd wins NEGATIVE G < 0 R wins POSITIVE G > 0 L wins FUZZY G || 0 1st wins and R has winning strategy and L has winning strategy and R has winning strategy and L has winning strategy Left starts Right starts

A Brief Introduction to Game Theory23/39 Combinatorial Game Theory The Basics IV - Negatives & Sums Negative of a game: definition ◊– G = {– G R | – G L } ◊Similar to switching places with your opponent ◊Impartial games are their own neg., so – G = G ◊Examples from games we’ve seen: NimDomineeringGame Tree G– GG Rotate 90° G– G Flip

A Brief Introduction to Game Theory24/39 Combinatorial Game Theory The Basics IV - Negatives & Sums Sums of games: definition ◊G + H = {G L + H, G + H L | G R + H, G + H R } ◊The player whose turn it is selects one component and makes a move in it. ◊Examples from games we’ve seen: G + H = { G L + H, G+H 1 L, G+H 2 L | G R + H, G+H R } += {, +, + |, + }

A Brief Introduction to Game Theory25/39 Combinatorial Game Theory The Basics IV - Negatives & Sums G + 0 = G ◊The Endgame doesn’t change a game’s value G + (– G) = 0 ◊“= 0” means is a zero game, 2nd player can win ◊Examples: 1 + (–1) = 0 and * + * = 0 1– * * ** NimDomineeringGame Tree 0

A Brief Introduction to Game Theory26/39 Combinatorial Game Theory The Basics IV - Negatives & Sums G = H ◊If the game G + (–H) = 0, i.e., a 2nd player win ◊Examples from games we’ve seen: Is G = H ? Play G + (–H) and see if 2nd player win Yes! Is G = H ? Play G + (–H) and see if 2nd player win No... Left Right

A Brief Introduction to Game Theory27/39 Combinatorial Game Theory The Basics IV - Negatives & Sums G ≥ H (Games form a partially ordered set!) ◊If Left can win the sum G + (–H) going 2nd ◊Examples from games we’ve seen: Is G ≥ H ? Yes! Is G ≥ H ? Play G + (–H) and see if Left wins going 2nd No... Play G + (–H) and see if Left wins going 2nd Left Right

A Brief Introduction to Game Theory28/39 Combinatorial Game Theory The Basics IV - Negatives & Sums G || H (G is incomparable with H) ◊If G + (–H) is || with 0, i.e., a 1st player win ◊Examples from games we’ve seen: Is G || H ? Play G + (–H) and see if 1st player win No... Is G || H ? Play G + (–H) and see if 1st player win YES! Left Right

A Brief Introduction to Game Theory29/39 Combinatorial Game Theory The Basics IV - Values of games What is the value of a fuzzy game? ◊It’s neither > 0, < 0 nor = 0, but confused with 0 ◊Its place on the number scale is indeterminate ◊Often represented as a “cloud” Let’s tie the theory all together!

A Brief Introduction to Game Theory30/39 Combinatorial Game Theory The Basics V - Final thoughts There’s much more! ◊More values Up, Down, Tiny, etc. ◊Simplicity, Mex rule ◊Dominating options ◊Reversible moves ◊Number avoidance ◊Temperatures Normal form games ◊Last to move wins, no ties ◊Whose turn not in game ◊Rich mathematics ◊Key: Sums of games ◊Many (most?) games are not normal form! What do we do then?

A Brief Introduction to Game Theory31/39 “Computational” Game Theory (for non-normal play games) Large games ◊Can theorize strategies, build AI systems to play ◊Can study endgames, smaller version of original Examples: Quick Chess, 9x9 Go, 6x6 Checkers, etc. Small-to-medium games ◊Can have computer solve and teach us strategy ◊GAMESMAN does exactly this

A Brief Introduction to Game Theory32/39 Computational Game Theory Simplify games / value ◊Store turn in position ◊Each position is (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) W L L WWW W T WWW T D WWW D W

A Brief Introduction to Game Theory33/39 GAMESMAN Analysis: TacTix, or 2-D Nim Rules (on your turn): ◊Take as many pieces as you want from any contiguous row / column Goal ◊Take the last piece Query ◊Column = Nim heap? ◊Zero shapes

A Brief Introduction to Game Theory34/39 GAMESMAN Analysis: Tic-Tac-Toe Rules (on your turn): ◊Place your X or O in an empty slot Goal ◊Get 3-in-a-row first in any row/column/diag. Misére is tricky

A Brief Introduction to Game Theory35/39 GAMESMAN Tic-Tac-Toe Visualization Visualization of values Example with Misére ◊ Next levels are values of moves to that position ◊ Outer rim is position ◊ Legend: Lose Tie Win ◊ Recursive image

A Brief Introduction to Game Theory36/39 Exciting Game Theory Research at Berkeley Combinatorial Game Theory Workshop ◊MSRI July 24-28th, 2000 ◊1994 Workshop book: Games of No Chance Prof. Elwyn Berlekamp ◊Dots & Boxes, Go endgames ◊Economist’s View of Combinatorial Games

A Brief Introduction to Game Theory37/39 Exciting Game Theory Research Chess Kasparov vs. ◊World, Deep Blue II Endgames, tablebases ◊Stiller, Nalimov ◊Combinatorial GT applied Values found [Elkies, 1996] parallel power to build database? ◊Historical analysis... White to move, wins in move 243 with Rd7xNe7

A Brief Introduction to Game Theory38/39 Exciting Game Theory Research Solving games 4x4x4 Tic-Tac-Toe [Patashnik, 1980] Connect-4 [Allen, 1989; Allis, 1988] Go-Moku [Allis et al., 1993] Nine Men’s Morris [Gasser, 1996] ◊One of oldest games – boards found c BC Checkers almost solved [Schaeffer, 1996]

A Brief Introduction to Game Theory39/39 Summary Combinatorial game theory, learned games Computational game theory, GAMESMAN Reviewed research highlights