Modelling an Opponent in Board Games Julian Jocque - - PowerPoint PPT Presentation

modelling an opponent in board games
SMART_READER_LITE
LIVE PREVIEW

Modelling an Opponent in Board Games Julian Jocque - - PowerPoint PPT Presentation

Modelling an Opponent in Board Games Julian Jocque http://www.konanebrothers.com/march_2010_043_op_690x517.jpg Motivation What if we could create a program to play exactly like Garry Kasparov? Approach Use the Estimation-Exploration


slide-1
SLIDE 1

Modelling an Opponent in Board Games

Julian Jocque

http://www.konanebrothers.com/march_2010_043_op_690x517.jpg

slide-2
SLIDE 2

Motivation

  • What if we could create a program to play

exactly like Garry Kasparov?

slide-3
SLIDE 3

Approach

  • Use the Estimation-Exploration Algorithm to

model opponents in Konane by presenting the

  • pponent with board states
slide-4
SLIDE 4

Board State and Game Trees

http://www.ocf.berkeley.edu/~yosenl/extras/alpha beta/alphabeta.jpg

http://1.bp.blogspot.com/- 1VruAl_cdE0/TwccPUduVTI/AAAAAAAACtg/6hIBEwxXeLI/ s400/zz+larsen+petrosian+game+chessboard+r7_pp2pB2 _3p3k_8_2PR4_8_PP4PP_5K2.gif

slide-5
SLIDE 5

Minimax

http://s175.photobucket.com/user/habsq/media/minimax-2.jpg.html

slide-6
SLIDE 6

Static Evaluators

I have a queen They have a queen Number of piece I have Number of pieces they have I am in checkmate They are in checkmate +2.735

  • 1.4

+3.55

  • 2.78
  • 10000

+10000

Allows for Minimax to stop at a particular depth

slide-7
SLIDE 7

Evolution

Used with permission from Ben Berger

slide-8
SLIDE 8

Estimation Exploration Algorithm

3.78 2.225

  • 1.24

1.33 4.3 2.9 ...

  • 2.4
  • 3.6

1.45 1.11 2.0 1.8

1

?

2 3

2.41 9.978 1.43

  • 2.3

3.0

  • 1.2

... 6.89

  • 1.13
  • 2.45
  • 4.1

9.1

  • 4.2

4

slide-9
SLIDE 9

The System I Built

  • Konane engine with Minimax, Alpha Beta

Pruning

  • EEA with evolving static evaluators and

evolving sets of board states

  • Model evaluator script
  • All programmed in Python, all from scratch

except Konane starter code

slide-10
SLIDE 10

Running The System

slide-11
SLIDE 11

Results

slide-12
SLIDE 12

Results cont.

  • Data still needs interpretation
  • Up to 90% accurate on opponents similar to

models, only up to 65% on different settings

  • About 45% accurate against opponent found
  • n Github
slide-13
SLIDE 13

Questions?