Threat Analysis to Reduce the Effects of the Horizon Problem in Shogi - PowerPoint PPT Presentation

About This Presentation
Title:

Threat Analysis to Reduce the Effects of the Horizon Problem in Shogi

Description:

Threat Analysis to Reduce the Effects of the Horizon Problem in Shogi Reijer Grimbergen Department of Information Science Saga University – PowerPoint PPT presentation

Number of Views:32
Avg rating:3.0/5.0
Slides: 22
Provided by: Reije
Category:

less

Transcript and Presenter's Notes

Title: Threat Analysis to Reduce the Effects of the Horizon Problem in Shogi


1
Threat Analysis to Reduce the Effects of the
Horizon Problem in Shogi
  • Reijer Grimbergen
  • Department of Information Science
  • Saga University

2
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

3
Game ProgrammingDefinitions
  • 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

4
Game ProgrammingSearch 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

5
Time Limits and the Horizon EffectSearch 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

6
Pruning and Extension TechniquesExample
Starting position
Nominal search depth
7
Pruning and Extension TechniquesResearch
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

8
Pruning and Extension TechniquesPractical 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

9
Threat AnalysisGeneral idea
Idea Pruning and extension decisions should be
based on threats
10
Threat AnalysisDefinitions
  • Assume two players B and W (B to move first)
  • A set of threats
  • A partial order ? on the set of threats
  • If ?(Ti) gt ?(Tj) then Ti has a higher priority
    than Tj
  • Two sets of unresolved threats

11
Threat AnalysisDefinitions
  • the set of threats against B at search
    depth i
  • the set of threats against W at search
    depth i
  • Maximum operator G
  • initial threat sets against B
    and W

12
Threat AnalysisGeneral 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

13
Threat AnalysisPruning rules
  • 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

14
Threat AnalysisExtension rules
  • 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

15
Threat AnalysisExtensions
Empty the threat stack IF THEN execute ELSE
defend against
16
Threat Analysis in ShogiFeatures of shogi
Pieces captured from the opponent can be re-used
Evaluation is a combination of material, attack
and defense
The assumptions behind futility pruning and
quiescence search do not apply in shogi
17
Threat Analysis in ShogiThreat set
  • Tmin no threat
  • M1,M7 material threats
  • Capture of a pawn, lance, knight, silver, gold,
    bishop or rook
  • K1,,K4 threats against the king.
  • Based on the attack and defense of the eight
    squares around the king
  • Tmax maximum threat, i.e. threat to capture the
    king

18
Threat Analysis in ShogiPartial order of threats
Tmax
M6
M7
K4
M4
M5
K3
M2
M3
K2
M1
K1
Tmin
19
Threat Analysis in ShogiImplementation 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

20
ResultsTactical 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

Version Solved Total Time
NTA 100 34 25200
TA 107 36 25416
21
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
Write a Comment
User Comments (0)
About PowerShow.com