Ігор Антонов “Короткий курс теорії ймовірності для ігрових дизайнерів.”
http://gamedev.lviv.ua
https://www.facebook.com/startuplviv
https://twitter.com/gdlviv
4. A story…
First Game: In four rolls of a single dice, the Chevalier wins if at least one six
comes up.
Success!
1
6
1
6
1
6
1
6
4
6
+ + + =
66% of
5. 24 ×
1
6 × 6
=
24
36
24 ×
1
6 × 6
=
24
36
A story…
SecondGame: In twenty-four rolls of a pair of dice, the Chevalier wins if at
least one twelve comes up.
Success!66% of
6. Probability is…
#1. Probability is measure of chance that something will happen.
=
number of “Looked For” outcomes
number of “Possible” outcomes
19. Sum effect
The Sum of Multiple Linear Random Selections is NOT a Linear Random
Selection!
2 … 12
“…in the game Dungeons and Dragons, players generate (virtual) skill attributes with values ranging from 3 to 18 by
rolling three six-sided dice. As a result, you see a lot of attribute values around 10 or 11, but very few at 3 or 18…”
20. Roll the Dice
Theoretical probabilityPractical probability
Monte Carlo Method - a problem solving technique used to
approximate the probability of certain outcomes by running
multiple trial runs.
Practice: Theory:
trialsMore
21. $ 100
$ 300
$ 1000
$ 5000
63%
25%
8%
4%
ExpectedValue
The expected value of a transaction in a game is the probability-weighted
average of all the possible values that could result.
= $5000 × 4% + $1000 × 8% +
+$300 × 25% + $100 × 63% =
= $418
𝐸𝑉 = 𝑋 ∙ 𝑃 𝑋
22. ExpectedValue on practice
Example:
= 100% × 4 = 𝟒
Expected damage
= 80% × 5 + 20% × 0 = 𝟒
= 20% × 𝟒𝟎 + 80% × 0 = 𝟖
Lightning bolt is the best!
Yes!
No!
if HP is high enough
if HP low
e.g. HP = 15
Expected damage = 20% × 𝟏𝟓 + 80% × 0 = 𝟑
23. Human Element
Example:
= 66% × $2400 + 33% × $2500 + 1% × $0 = $𝟐𝟒𝟎𝟗
Expected value
Game B
But!
People are often willing to pay a price
to eliminate the potential of regret
= 100% × $2400 = $𝟐𝟒𝟎𝟎
People are often willing to take a risk.
People like sure gain and probable loss.
25. Need Spices – Use Chance
“…Risk and randomness are like spices. A game without any hint of them can
be completely bland, but put in too much and they overwhelm everything else.
But get them just right, and they bring out the flavor of everything else in your
game…”
Risk SuccessSurprise etc.Random