Detecting strategic moves in HearthStone matches
BORIS DOUX, CLÉMENT GAUTRAIS AND BENJAMIN NEGREVERGNE
1
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
BORIS DOUX, CLÉMENT GAUTRAIS AND BENJAMIN NEGREVERGNE
1
Online collectible card game from Blizzard. Turn based game.
2
Online collectible card game from Blizzard. Turn based game.
Opponent’s deck My deck
2
Online collectible card game from Blizzard. Turn based game.
Opponent’s hand My hand Opponent’s deck My deck
2
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
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
3
Complex game for beginners Identify key actions from strategic events of experienced players matches Our solution
2066 matches from three good players Available at https://bitbucket.org/Valnora/hsdataset Each match 𝑗 is a pair (𝑦𝑗, 𝑧𝑗)
1, … , 𝑦𝑗 𝑜]: feature vector list
𝑙: feature vector for turn 𝑙
4
What is a strategic event ?
5
A strategic event is an event that impacts the predicted outcome of the game Intuitive definition
A strategic event is an event that impacts the predicted outcome of the game Strategic event detection process
turn
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
Step 1: Achieve a reliable prediction of game outcome at the end of each turn Classifiers features
7
End goal: find key actions, not the best game outcome prediction
!
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
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
Last turn
Last turn
Last turn
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
10
Unstable results
Logistic regression Random forest Naive Bayes Average accuracy on test set
10
Unstable results Every odd turn, the first player has an edge
Logistic regression Random forest Naive Bayes Average accuracy on test set
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
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
Step 2: Strategic events are correlated with changes in classifier predictions Strongest card of the Hunter class
11
Step 2: Strategic events are correlated with changes in classifier predictions Powerful synergy that deals damage while putting creatures on the board
12
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
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
Get more data
Automatically extract set of strong cards
Applicability to other sports: strategic plays in sport points
15
16
17