INTELLIGENT SYSTEM FOR PLAYING TAROK

Slides:



Advertisements
Similar presentations
Adversarial Search Chapter 6 Section 1 – 4. Types of Games.
Advertisements

Games & Adversarial Search Chapter 5. Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent’s reply. Time.
For Friday Finish chapter 5 Program 1, Milestone 1 due.
Games & Adversarial Search
Games and adversarial search
For Monday Read chapter 7, sections 1-4 Homework: –Chapter 4, exercise 1 –Chapter 5, exercise 9.
ICS-271:Notes 6: 1 Notes 6: Game-Playing ICS 271 Fall 2008.
CS 484 – Artificial Intelligence
Prepare for 4x4x4 tic-tac-toe
Adversarial Search Chapter 5.
Adversarial Search CSE 473 University of Washington.
MINIMAX SEARCH AND ALPHA- BETA PRUNING: PLAYER 1 VS. PLAYER 2.
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.
10/19/2004TCSS435A Isabelle Bichindaritz1 Game and Tree Searching.
Games CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Minimax and Alpha-Beta Reduction Borrows from Spring 2006 CS 440 Lecture Slides.
Artificial Intelligence in Game Design
State Space 4 Chapter 4 Adversarial Games. Two Flavors Games of Perfect Information ◦Each player knows everything that can be known ◦Chess, Othello Games.
1 Game Playing Chapter 6 Additional references for the slides: Luger’s AI book (2005). Robert Wilensky’s CS188 slides:
Game Playing CSC361 AI CSC361: Game Playing.
Games and adversarial search
How computers play games with you CS161, Spring ‘03 Nathan Sturtevant.
ICS-271:Notes 6: 1 Notes 6: Game-Playing ICS 271 Fall 2006.
Game Tree Search based on Russ Greiner and Jean-Claude Latombe’s notes.
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: Adversarial Search Chapter 6. Why study games Fun Clear criteria for success Interesting, hard problems which require minimal “initial structure”
Game Trees: MiniMax strategy, Tree Evaluation, Pruning, Utility evaluation Adapted from slides of Yoonsuck Choe.
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 2 Adapted from slides of Yoonsuck.
Lecture 5 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
Game Playing Chapter 5. Game playing §Search applied to a problem against an adversary l some actions are not under the control of the problem-solver.
Game Playing.
1 Computer Group Engineering Department University of Science and Culture S. H. Davarpanah
Mark Dunlop, Computer and Information Sciences, Strathclyde University 1 Algorithms & Complexity 5 Games Mark D Dunlop.
Instructor: Vincent Conitzer
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.
For Wednesday Read chapter 7, sections 1-4 Homework: –Chapter 6, exercise 1.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Quiz 4 : Minimax Minimax is a paranoid algorithm. True
GAME PLAYING 1. There were two reasons that games appeared to be a good domain in which to explore machine intelligence: 1.They provide a structured task.
Adversarial Search Chapter Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time limits.
Artificial Intelligence and Searching CPSC 315 – Programming Studio Spring 2013 Project 2, Lecture 1 Adapted from slides of Yoonsuck Choe.
Game Playing Revision Mini-Max search Alpha-Beta pruning General concerns on games.
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.
ARTIFICIAL INTELLIGENCE (CS 461D) Princess Nora University Faculty of Computer & Information Systems.
CMSC 421: Intro to Artificial Intelligence October 6, 2003 Lecture 7: Games Professor: Bonnie J. Dorr TA: Nate Waisbrot.
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.
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.
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.
Artificial Intelligence AIMA §5: Adversarial Search
Instructor: Vincent Conitzer
Stochastic tree search and stochastic games
4. Games and adversarial search
PENGANTAR INTELIJENSIA BUATAN (64A614)
State Space 4 Chapter 4 Adversarial Games.
Chapter 23 Planning in the Game of Bridge
Minimax Pathology Mitja Luštrek 1, Ivan Bratko 2 and Matjaž Gams 1
Chapter 23 Planning in the Game of Bridge
Instructor: Vincent Conitzer
Chapter 23 Planning in the Game of Bridge
Mini-Max search Alpha-Beta pruning General concerns on games
Games & Adversarial Search
Games & Adversarial Search
Unit II Game Playing.
Presentation transcript:

INTELLIGENT SYSTEM FOR PLAYING TAROK Mitja Luštrek & Matjaž Gams Jožef Stefan Institute Ljubljana, Slovenia

PERFECT AND IMPERFECT INFORMATION GAMES Perfect information (players have full knowledge of the state of the game) Chess, backgammon Checkers, Othello Connect-four ... Imperfect information (players have only partial knowledge of the state of the game) Bridge Poker Tarok

THE GAME – TAROK Very popular in Central Europe Many variants (tarock, taroky, königsrufen...) Three players: two against one 54 cards: suits and trumps – taroks The objective is winning tricks

THE PROGRAM – SILICON TAROKIST Tarok-playing programs exist, but little is known of how they work. Tarok.net (www.tarok.net) Tarock World (www.gatecentral.com/triangle) ... We developed Silicon Tarokist. Freely available (tarok.bocosoft.com) Plays reasonably well as judged by human players.

GAME TREE SEARCH Alpha-beta algorithm is used to search a single game tree. Nodes – game states Edges – moves

SAMPLING Monte Carlo sampling is used to generate samples of other players’ hands.

ALPHA-BETA ENHANCEMENTS Transposition table Fuzzy transposition table Similar to partition search (bridge program GIB, M. L. Ginsberg, 1996) Move ordering Adjusting the width of search window Pruning the game tree

TRANSPOSITION TABLE Usually: transposition table stores single game states and their values. Partition search: for each encountered game state, a set of states with equal value is calculated and stored together with the value. Silicon Tarokist: the set of equivalent game states is determined heuristically.

OTHER ALPHA-BETA ENHANCEMENTS Move ordering Moves that cause cut-offs should be tried first. History heuristic: moves that have caused cut-offs in previously searched game states are given priority. Adjusting the width of search window Narrower search window causes more cut-offs, thus speeding up the search. Minimal window search: non-first children of a node are searched with minimal window, since we are trying to show they are inferior to the first one. Pruning the game tree Some moves can be discarded because they are either clearly bad or redundant – the same effect can be achieved by another move.

MONTE CARLO SAMPLING ENHANCEMENT Monte Carlo sampling has demonstrable deficiencies. Nevertheless, it works. Deficiency we observed: An assumption about the state of the game is made. Sequence of bad, but inevitable move – good move is evaluated equally as good move – bad, but inevitable move. Sometimes bad, but inevitable move is made first. Then it turns out it is not inevitable. Solution: In addition to full search, search to the depth of one trick is performed. This emphasizes immediate profit. A combination of both searches is used for the final decision.

RESULTS Game tree search algorithm in Silicon Tarokist searches 184-times less nodes than alpha-beta using uses 86-times less time. The program does not play flawlessly, but it is a challenging opponent. For truly high-level play, game tree search that we use in inadequate. It is too shallow for long-term strategies to be developed. It will either have to be improved significantly or another – probably knowledge-based – way to develop long-term strategies will have to be devised.