Detecting strategic moves in HearthStone matches BORIS DOUX, - - PowerPoint PPT Presentation

detecting strategic
SMART_READER_LITE
LIVE PREVIEW

Detecting strategic moves in HearthStone matches BORIS DOUX, - - PowerPoint PPT Presentation

Detecting strategic moves in HearthStone matches BORIS DOUX, CLMENT GAUTRAIS AND BENJAMIN NEGREVERGNE 1 HearthStone basics Online collectible card game from Blizzard. Turn based game. 2 HearthStone basics Online collectible card game from


slide-1
SLIDE 1

Detecting strategic moves in HearthStone matches

BORIS DOUX, CLÉMENT GAUTRAIS AND BENJAMIN NEGREVERGNE

1

slide-2
SLIDE 2

HearthStone basics

Online collectible card game from Blizzard. Turn based game.

2

slide-3
SLIDE 3

HearthStone basics

Online collectible card game from Blizzard. Turn based game.

Opponent’s deck My deck

2

slide-4
SLIDE 4

HearthStone basics

Online collectible card game from Blizzard. Turn based game.

Opponent’s hand My hand Opponent’s deck My deck

2

slide-5
SLIDE 5

HearthStone basics

Online collectible card game from Blizzard. Turn based game.

Opponent’s hand My hand Opponent’s deck My deck My hero Opponent’s hero

2

slide-6
SLIDE 6

HearthStone basics

Online collectible card game from Blizzard. Turn based game.

Opponent’s hand My creature attack health My hand Opponent’s deck Opponent’s creature My deck My hero Opponent’s hero

2

slide-7
SLIDE 7
  • 1053 cards, and counting
  • Some cards have a large impact on the game
  • Many synergies between cards

Beginner challenge

3

Complex game for beginners Identify key actions from strategic events of experienced players matches Our solution

slide-8
SLIDE 8

Dataset

2066 matches from three good players Available at https://bitbucket.org/Valnora/hsdataset Each match 𝑗 is a pair (𝑦𝑗, 𝑧𝑗)

  • 𝑧𝑗: game result
  • 𝑦𝑗 = [𝑦𝑗

1, … , 𝑦𝑗 𝑜]: feature vector list

  • 𝑦𝑗

𝑙: feature vector for turn 𝑙

  • Cards played during the turn
  • Number of cards in hand
  • Board state
  • Players health

4

slide-9
SLIDE 9

Strategic events

What is a strategic event ?

  • Predefined by experts (goal, free-kick in soccer) [CHG02]
  • We want to automatically identify these events
  • Induce crowd reaction [WYHG14]
  • Not available
  • Visual effects (kills in MOBA) [CC15]
  • Does not bring more information than the card itself

5

A strategic event is an event that impacts the predicted outcome of the game Intuitive definition

slide-10
SLIDE 10

Strategic event detection

A strategic event is an event that impacts the predicted outcome of the game Strategic event detection process

  • 1. Predict game outcome at the end of each

turn

  • 2. Identify consecutive turns were the
  • utcome prediction changes

0,1 0,2 0,3 0,4 0,5 0,6 0,7 0,8 0,9 1 Last turn Last turn - 1 Last turn - 2 Last turn - 3 Last turn - 4

Probability of winning

Strategic event detection

Probability of winning

Strategic event occurred

6

slide-11
SLIDE 11

Predicting game outcome

Step 1: Achieve a reliable prediction of game outcome at the end of each turn Classifiers features

  • Players health and armor
  • Creatures total health and attack
  • Players number of cards
  • Number of creatures with taunt

7

End goal: find key actions, not the best game outcome prediction

!

!

slide-12
SLIDE 12

Predicting game outcome

Goal: Achieve a reliable prediction of game outcome at the end of each turn First idea: One classifier for each turn, in increasing turn order Result: Unreliable outcome prediction

8

Game 1 Game 2 Game 3 Turn 1 Turn 2 Turn 3 Turn 4 Turn 5 Classifier turn 1 Classifier turn 2 Classifier turn 3

Prediction at turn 1 Prediction at turn 2 Prediction at turn 3

Main issue: Turns that have the same number represent different game stages

slide-13
SLIDE 13

Predicting game outcome

Goal: Achieve a reliable prediction of game outcome at the end of each turn Second idea: One classifier for each turn, in decreasing turn order (end alignment)

9

Game 1 Game 2 Last turn

  • 4

Last turn

  • 3

Last turn

  • 2

Last turn

  • 1

Last turn Classifier last turn Classifier last turn - 1 Classifier last turn - 2

Prediction at last turn Prediction at last turn - 1 Prediction at last turn - 2

Game 3

slide-14
SLIDE 14

Game outcome prediction results

10

Unstable results

Logistic regression Random forest Naive Bayes Average accuracy on test set

slide-15
SLIDE 15

Game outcome prediction results

10

Unstable results Every odd turn, the first player has an edge

Logistic regression Random forest Naive Bayes Average accuracy on test set

slide-16
SLIDE 16

Game outcome prediction results

10

Unstable results Every odd turn, the first player has an edge Make a prediction at the end of every even turn

Logistic regression Random forest Naive Bayes Average accuracy on test set

slide-17
SLIDE 17

Game outcome prediction results

10

Unstable results Every odd turn, the first player has an edge Make a prediction at the end of every even turn

Logistic regression Random forest Naive Bayes Average accuracy on test set Average accuracy on test set

slide-18
SLIDE 18

Strategic events analysis

Step 2: Strategic events are correlated with changes in classifier predictions Strongest card of the Hunter class

11

slide-19
SLIDE 19

Strategic events analysis

Step 2: Strategic events are correlated with changes in classifier predictions Powerful synergy that deals damage while putting creatures on the board

12

slide-20
SLIDE 20

Strategical insights

Identify common game strategies Feature importance analysis from classifier (from logistic regression) Can help beginners to focus on specific resources (creature attack or number of cards) depending on the game moment

Hero health Hero health Card count Card count

13

Creature attack Creature attack Creature health Creature health

slide-21
SLIDE 21

Conclusion

Simple method to identify strategic events in a game Analysis of these key events enables beginner to identify key actions Analysis of classifiers gives strategical insights

14

slide-22
SLIDE 22

Perspectives

Get more data

  • Matchup analysis
  • Common game plan (aggressive, control, combo…) modeling with LDA

Automatically extract set of strong cards

  • Pattern mining on cards played during key events: promising results

Applicability to other sports: strategic plays in sport points

  • Common settings with turn based sports (tennis, volley-ball, badminton…)

15

slide-23
SLIDE 23

Questions ?

16

slide-24
SLIDE 24

References

17