PYIWIT'021 Threat Analysis to Reduce the Effects of the Horizon Problem in Shogi Reijer Grimbergen Department of Information Science Saga University.

Slides:



Advertisements
Similar presentations
1 Using Partial Order Bounding in Shogi Game Programming Workshop 2003 Reijer Grimbergen, Kenji Hadano and Masanao Suetsugu Department of Information Science.
Advertisements

Adversarial Search We have experience in search where we assume that we are the only intelligent being and we have explicit control over the “world”. Lets.
ICS-271:Notes 6: 1 Notes 6: Game-Playing ICS 271 Fall 2008.
CS 484 – Artificial Intelligence
2002/11/15Game Programming Workshop1 A Neural Network for Evaluating King Danger in Shogi Reijer Grimbergen Department of Information Science Saga University.
Adversarial Search Chapter 5.
Adversarial Search: Game Playing Reading: Chapter next time.
Adversarial Search CSE 473 University of Washington.
Artificial Intelligence for Games Game playing Patrick Olivier
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.
October 28th 2001GPW20011 Using Castle and Assault Maps for Guiding Opening and Middle Game Play in Shogi Reijer Grimbergen (Saga University) Jeff Rollason.
Lecture 13 Last time: Games, minimax, alpha-beta Today: Finish off games, summary.
Plausible Move Generation Using Move Merit Analysis in Shogi Reijer Grimbergen (Electrotechnical Laboratory) Hitoshi Matsubara (Future University Hakodate)
Problem Solving Using Search Reduce a problem to one of searching a graph. View problem solving as a process of moving through a sequence of problem states.
November 10, 2009Introduction to Cognitive Science Lecture 17: Game-Playing Algorithms 1 Decision Trees Many classes of problems can be formalized as search.
Games and adversarial search
ICS-271:Notes 6: 1 Notes 6: Game-Playing ICS 271 Fall 2006.
Adversarial Search: Game Playing Reading: Chess paper.
Games & Adversarial Search Chapter 6 Section 1 – 4.
Group 1 : Ashutosh Pushkar Ameya Sudhir From. Motivation  Game playing was one of the first tasks undertaken in AI  Study of games brings us closer.
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.
Game Trees: MiniMax strategy, Tree Evaluation, Pruning, Utility evaluation Adapted from slides of Yoonsuck Choe.
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. 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.
Lecture 6: Game Playing Heshaam Faili University of Tehran Two-player games Minmax search algorithm Alpha-Beta pruning Games with chance.
Game Playing.
Apostles Chess Club Session Three. Chess Piece Symbols The symbols shown above are the ones most used when showing chess pieces in print or on the internet.
Prepared by : Walaa Maqdasawi Razan Jararah Supervised by: Dr. Aladdin Masri.
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.
October 3, 2012Introduction to Artificial Intelligence Lecture 9: Two-Player Games 1 Iterative Deepening A* Algorithm A* has memory demands that increase.
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.
2004/11/13GPW20041 What Shogi Programs Still Cannot Do - A New Test Set for Shogi - Reijer Grimbergen and Taro Muraoka Department of Informatics Yamagata.
Adversarial Search Chapter 6 Section 1 – 4. Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
Computing & Information Sciences Kansas State University Lecture 9 of 42 CIS 530 / 730 Artificial Intelligence Lecture 9 of 42 William H. Hsu Department.
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.
Planning to Guide Opening and Middle Game Play in Shogi Reijer Grimbergen (Electrotechnical Laboratory) Hitoshi Matsubara (Future University Hakodate)
Game Playing. Introduction One of the earliest areas in artificial intelligence is game playing. Two-person zero-sum game. Games for which the state space.
Chess and AI Group Members Abhishek Sugandhi Sanjeet Khaitan Gautam Solanki
IWEC20021 Threat Stacks to Guide Pruning and Search Extensions in Shogi Reijer Grimbergen Department of Information Science Saga University, Japan.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 9 of 42 Wednesday, 14.
Adversarial Search Chapter Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time limits.
Game Playing Revision Mini-Max search Alpha-Beta pruning General concerns on games.
CHESS 2: Castling and Forking…and a Stalemate A Levoy Power Point.
2006/6/30SIGGI-161 The Society of Shogi - A Research Agenda - Reijer Grimbergen Department of Informatics Yamagata University.
Computers and Games Board Maps and Hill-Climbing for Opening and Middle Game Play in Shogi Reijer Grimbergen (Saga University) Jeff Rollason (Oxford.
Adversarial Search Chapter 6 Section 1 – 4. Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time.
Adversarial Search and Game Playing Russell and Norvig: Chapter 6 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2004/home.htm Prof: Dekang.
D Goforth - COSC 4117, fall OK administrivia  Exam format – take home, open book  Suicide rule for King’s court Illegal moves cannot move last.
February 25, 2016Introduction to Artificial Intelligence Lecture 10: Two-Player Games II 1 The Alpha-Beta Procedure Can we estimate the efficiency benefit.
Using Castle Maps for Guiding Opening and Middle Game Play in Shogi Reijer Grimbergen (Saga University) Jeff Rollason (Oxford Softworks)
Plausible Move Generation Using Move Merit Analysis with Cut-off Thresholds in Shogi Reijer Grimbergen (Electrotechnical Laboratory)
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.
CIS 350 – I Game Programming Instructor: Rolf Lakaemper.
Iterative Deepening A*
Games and adversarial search (Chapter 5)
Optimizing Minmax Alpha-Beta Pruning Real Time Decisions
Games & Adversarial Search
Adversarial Search.
The Alpha-Beta Procedure
Introduction to Artificial Intelligence Lecture 9: Two-Player Games I
Mini-Max search Alpha-Beta pruning General concerns on games
CS51A David Kauchak Spring 2019
CS51A David Kauchak Spring 2019
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning
Presentation transcript:

PYIWIT'021 Threat Analysis to Reduce the Effects of the Horizon Problem in Shogi Reijer Grimbergen Department of Information Science Saga University

PYIWIT'022 Presentation Outline Game programming Time limits and the horizon effect Pruning and extension techniques Threat analysis in two-player games Application to shogi Implementation issues Preliminary results Conclusions and future work

PYIWIT'023 Game Programming Definitions Two-player perfect information games Only two players involved Game state is fully accessible to both players Goal: win the game against all the possible replies of the opponent

PYIWIT'024 Game Programming Search vs. knowledge Two basic approaches for game programming Search Knowledge Problem of search: impossible to search to the end of the game Search space of chess is Problem of knowledge: expert knowledge is hard to capture

PYIWIT'025 Time Limits and the Horizon Effect Search in games Search in games: Most successful method Decisions have to be made under strict time constraints Basic search method is iterative deepening Search with increasing nominal search depth Use an evaluation function to estimate the probability of winning Horizon effect: no way of knowing what will happen beyond the nominal search depth

PYIWIT'026 Pruning and Extension Techniques Example Starting position Nominal search depth Pruning Extensions

PYIWIT'027 Pruning and Extension Techniques Research objective Merits of pruning and extensions Pruning saves time Extensions improve reliability Risks of pruning and extensions Important moves are discarded Meaningless extensions can be costly For each game, careful tuning is vital

PYIWIT'028 Doesn’t carry over to other games Pruning and Extension Techniques Practical use Pruning and extensions in chess Futility pruning: search is terminated when it is unlikely to recover from a material loss Quiescence search: play out captures beyond the nominal search depth Research Objective Construct a general framework for pruning and extension decisions

PYIWIT'029 Threat Analysis General idea Idea Pruning and extension decisions should be based on threats The problems that the search is facing

PYIWIT'0210 Threat Analysis Definitions Assume two players B and W (B to move first) A set of threats A partial order  on the set of threats If  (T i ) >  (T j ) then T i has a higher priority than T j Two sets of unresolved threats

PYIWIT'0211 Threat Analysis Definitions : the set of threats against B at search depth i : the set of threats against W at search depth i Maximum operator Γ : initial threat sets against B and W

PYIWIT'0212 Threat Analysis General goals Safety All threats against player B are resolved Control There is a stronger threat against W than any of the threats against B Problem: how to judge that a threat is resolved? Search is still needed to resolve threats

PYIWIT'0213 Pruning rule 1 Prune all moves at search depth N-1 (N is the nominal search depth) that do not resolve any threats Pruning rule 2 Prune all moves at depth i that introduce threats against W with a lower priority than the highest priority threat against B Threat Analysis Pruning rules

PYIWIT'0214 Extension rule 1 Extend the search if the highest priority threat of the initial set is still unresolved Extension rule 2 Extend the search if the highest priority threat extends a certain threshold Threat Analysis Extension rules

PYIWIT'0215 Empty the threat stack IF THEN execute ELSE defend against Threat Analysis Extensions

PYIWIT'0216 Threat Analysis in Shogi Features of shogi The assumptions behind futility pruning and quiescence search do not apply in shogi Pieces captured from the opponent can be re-used Evaluation is a combination of material, attack and defense

PYIWIT'0217 Threat Analysis in Shogi Threat set T min : no threat M 1,…M 7 : material threats Capture of a pawn, lance, knight, silver, gold, bishop or rook K 1,…,K 4 : threats against the king. Based on the attack and defense of the eight squares around the king T max : maximum threat, i.e. threat to capture the king

PYIWIT'0218 Threat Analysis in Shogi Partial order of threats T max T min M6M6 M7M7 M4M4 M5M5 M2M2 M3M3 M1M1 K4K4 K3K3 K2K2 K1K1

PYIWIT'0219 Threat Analysis in Shogi Implementation issues Partial implementation in the shogi program SPEAR Both of the pruning rules Neither of the extension rules A static search extension to empty and

PYIWIT'0220 Results Tactical problem test 300 tactical problems from Shukan Shogi Compare the performance of a program without threat analysis (NTA) to a program with threat analysis (TA) 60 seconds per problem on an Athlon 1.2GHz standard PC VersionSolved%Total Time NTA10034%2:52:00 TA10736%2:54:16

PYIWIT'0221 Conclusions and Future Work Preliminary results indicate that threat analysis might improve the tactical ability of a shogi program A full implementation of the method is needed to further investigate the merits of the method Self-play experiments are needed to establish whether the improved tactical ability is actually leading to an improvement in playing strength