The test game. This series uses one test game, which is not a real product. Three scatters on its 5 reels start 10 free spins, about 1 time in 151 spins. Belief is the fair value of the round after each step. News is the change of belief in one step.
A player reads cues
Part 3 shows that the brain signals the change of an expectation. The exact expectation is belief. A player cannot calculate belief. The player reads it from the screen.
A cue is an event that the player can see or hear, and that changes what the player expects. A scatter is a cue. A counter that shows "2 of 3" is a cue. A reel that becomes slow is a cue.
With no cue, the player has one expectation for the full round. The brain gets one signal, at the end. With a cue, the player can guess what comes. The guess gives a signal at once, and a second signal while the player waits for the answer.
A cue moves news to an earlier step
A cue does not make the surprise of a round larger. It releases a part of the surprise at an earlier step, and the result releases less.
Example: the variance of the payout is 100. If a cue releases 30 at an earlier step, the result releases only 70.
- Let
μₜbe the belief of a player who sees the cue at step t. Letνₜbe the belief of a player who does not see it. - The second player has less information. As a result,
νₜis the mean ofμₜover all that the second player cannot see. - The mean of a quantity does not have more variance than the quantity:
Var(νₜ) ≤ Var(μₜ). - Up to step t, the first player received the variance
Var(μₜ). The second player receivedVar(νₜ). - At the end, the two players know the payout. Law 2 gives the same total for the two players:
Var(X).
The simulation ran 4,000,000 base spins of the test game with 3 displays. The first display shows nothing before the result. The second display shows only the scatters. The third display shows all symbols. For each display, the steps release 31.0 squared stakes in total.
| Display | Variance before the result | Travel of the base spin |
|---|---|---|
| No cue | 0% | 1.38 stakes |
| Scatter cues only | 93% | 2.89 stakes |
| All symbols | 100% | 3.32 stakes |
The scatter cue alone moves 93% of the variance of the base spin to the reel stops. The travel of the base spin goes from 1.38 to 2.89 stakes. The payouts do not change.
A cue gives the player information earlier. The round has the same news in total, and the player has something to wait for.
Eight primitives
A game makes its cues from a small set of visual primitives. Each primitive shows one type of fact.
| Primitive | What it tells the player | Class |
|---|---|---|
| Symbol | One necessary event is complete, for example a scatter on this reel. | State |
| Counter | How many of the necessary events are complete. | State |
| Value badge | The size of one factor of the payout, for example a multiplier. | State |
| Mystery box | A result exists, and the game will show it soon. | State |
| Meter | The progress to a threshold in a sequence of spins. | State |
| Frame | Which reels can still change the result. | Time |
| Slow reel | The moment of the result. The wait becomes longer. | Time |
| Count-up | One payout, in many small steps. | Split |
Three numbers for a cue
rate = P(cue)The part of all rounds that show the cue.
Count the rounds that show the cue. Divide by the number of all rounds.
with_cue = [r for r in rounds if r.has_cue]
rate = len(with_cue) / len(rounds)Use it. Set a maximum rate for each cue: a cue that appears in each round tells the player nothing.
reliability = P(result | cue)The chance of the result after the cue appears. It is the number that the player learns from experience.
Use only the rounds that show the cue. Count the rounds of this group that have the result, and divide by the size of the group.
with_cue = [r for r in rounds if r.has_cue]
reliability = len([r for r in with_cue if r.has_result]) / len(with_cue)Use it. Set a minimum reliability for each cue. Below the minimum, remove the cue from rounds that do not have the result.
bits = log₂( reliability ÷ P(result) )How many times the cue doubles the chance of the result [1]. A cue with 1 bit makes the result 2 times as probable. A cue with 3 bits makes it 8 times as probable.
Think of the result as 1 round in a group of possible rounds. Each bit of a cue cuts the group in half, and the result becomes 2 times as probable.
Example. Before the spin, the feature of the test game comes in 1 of 151 rounds. With 2 scatters after reel 4, it comes in 1 of 10.8 rounds. That is between 3 halvings (18.9) and 4 halvings (9.4): the cue has 3.8 bits.
import math
chance = len([r for r in rounds if r.has_result]) / len(rounds)
bits = math.log2(reliability / chance)Use it. A cue with 0 bits does not change the chance of the result: do not show it as good news.
The table gives the 3 numbers for the scatter cues of the test game. The result is the feature, with a chance of 0.66% before the spin.
| Cue | Rate | Reliability | Bits |
|---|---|---|---|
| 1 scatter is visible after reel 2 | 16.6% | 2.4% | 1.8 |
| 2 scatters are visible after reel 2 | 0.8% | 25.0% | 5.2 |
| 2 scatters are visible after reel 3 | 2.3% | 17.5% | 4.7 |
| 2 scatters are visible after reel 4 | 4.1% | 9.2% | 3.8 |
rate × reliability ≤ P(result).The rate × the reliability is the part of all rounds that show the cue and also have the result. This part cannot be larger than the part of all rounds that have the result.
Example: 50 of 1,000 rounds show the cue (rate 5%), and 4 of these 50 have the result (reliability 8%). The product is 0.05 × 0.08 = 0.004, or 4 rounds in 1,000, and the result cannot come in fewer rounds.
- The definition of conditional probability gives
P(cue and result) = rate × reliability. - The event "cue and result" is a part of the event "result". As a result,
P(cue and result) ≤ P(result). - The two sides are equal when the result cannot come without the cue.
A strong cue is rare. A cue with 3.8 bits cannot appear in more than 1 of 14 rounds. A cue that appears in each round has 0 bits.
Divide the chance of the result by the reliability of the cue. The answer is the highest rate that the cue can have.
Example. With 2 scatters after reel 4, the reliability is 9.2%, and the chance of the feature is 0.66%. The highest rate is 0.66% ÷ 9.2% = 7.2%, or 1 round in 14, and the rate of this cue is 4.1%.
highest_rate = chance / reliability
if rate > highest_rate:
print("error in the count: the rate is above the limit")Use it. If you want the cue in more rounds, accept a lower reliability.
The silence of a cue
A cue that is good news when it appears is bad news when it does not appear.
Example: belief is 2×. A cue appears in 1 of 4 rounds and moves belief to 5×. In the other 3 rounds, belief must go down to 1×: 0.25 × 5 + 0.75 × 1 = 2.
- Let the cue appear with the chance
r. Let belief beawith the cue andbwith no cue. - Law 1 gives the belief before this moment:
μ = r × a + (1 − r) × b. - If
ais larger thanμ, thenbis smaller thanμ.
Many games show a special picture when a feature will be large. Assume that the test game shows such a cue when the feature will pay 100× or more. The cue appears in 18% of the features, and belief goes from 64× to 205×. In the other 82%, the cue does not appear, and belief goes down to 33×. After some sessions, the player reads the silence too.
Progress is not chance
A counter shows progress, and people work harder when a goal is near [2]. But a counter does not show the chance. With 2 of 3 scatters, the counter shows 67% of the way. The chance of the feature is 25% after reel 2 and 9% after reel 4. A designer must calculate the reliability, because the counter does not give it.
Four classes of cue
- A state cue shows a fact that changes the exact belief. Examples are a scatter, a counter and a multiplier value. The tease of the test game is a state cue: the chance of 9.2% is real.
- A time cue changes no belief. It changes the length of the wait and the attention of the player. Examples are a slow reel, a frame and a sound that rises. In one study, sound increased the arousal of the players [3].
- A split cue divides one piece of news into many steps. A count-up of a win is an example. Law 3 says that travel does not decrease.
- A false cue makes the player expect more than the exact belief. One example is a celebration for a payout below the stake [4]. A second example is a reel with weights that make a high-pay symbol stop next to the win line more frequently than on it [5].
A false cue makes the player expect more than the belief, but the mean payout does not change. The later steps take the difference back as bad news.
Example: the belief is 2×, and a celebration makes the player expect 5×. The rounds from this state still pay 2× on average, and the later news has a mean of 2 − 5 = −3×.
- Let the cue move the expectation of the player to
ν. Let the exact belief beμ, withνlarger thanμ. - The definition of belief gives the mean payout from this state:
μ. - As a result, the mean of all the later news for this player is
μ − ν, which is negative.
A state cue obeys Law 1: the later news has a mean of 0. A false cue does not. The player pays back each false unit of hope with bad news. In the study of sound, the players also thought that they won more frequently than they did [3]. As a result, a time cue can become a false cue.
The mean payout of all the rounds that show a cue is the value that the mathematics gives to the cue. A cue is false if its picture or its sound promises more than this value.
with_cue = [r.payout for r in rounds if r.has_cue]
no_cue = [r.payout for r in rounds if not r.has_cue]
value_with_cue = sum(with_cue) / len(with_cue)
value_no_cue = sum(no_cue) / len(no_cue)Use it. If the game shows a cue as good news, this value must be higher than the value with no cue. If it is not higher, remove the cue or change its picture.
A state cue can also be weak. The ante of the test game adds scatters to reels 2, 3 and 4 only. The tease rate goes from 4.4% to 11.4% of spins, and the chance before the last reel stays at 9.2%. Each tease is true, but most teases end with nothing. A designer who uses such reels must report the reliability of the tease.
Regulators act on false cues. The regulator in Great Britain does not permit a celebration for a payout that is not above the stake [6].
Do it with an AI agent
You do not write the calculation. First, list the cues of your game: each event that the player can see or hear before the result. For each cue, write the result that it shows, and write if the game shows the cue as good news. Then give the list and the instructions to the agent, and read the checks.
Simulate 1,000,000 rounds of my game. For each cue in my list, calculate 3 numbers and print one table. The rate is the part of all rounds that show the cue. The reliability is the part of the rounds with the cue that also have the result. The bits are log2(reliability ÷ chance of the result in all rounds).
You get. A table with one row for each cue. For comparison, the cue "2 scatters after reel 4" of the test game has a rate of 4.1%, a reliability of 9.2% and 3.8 bits.
Test the table with one law. For each cue, multiply the rate by the reliability. The product must not be larger than the chance of the result in all rounds. Print each cue that does not obey this law.
You get. An empty list. No game can have a larger product. If a cue is in the list, the count has an error.
Find the false cues. For each cue, print 2 values: the mean payout with the cue and the mean payout with no cue. Mark a cue if the game shows it as good news and the first value is not higher. Also count the rounds that show a win celebration and pay the stake or less.
You get. A list of the cues that you must change or remove, and one count. The count must be 0. This is the rule of the regulator in Great Britain.
References
- Shannon CE (1948). A mathematical theory of communication. Bell System Technical Journal 27:379–423, 623–656.
- Kivetz R, Urminsky O, Zheng Y (2006). The goal-gradient hypothesis resurrected: purchase acceleration, illusionary goal progress, and customer retention. Journal of Marketing Research 43:39–58.
- Dixon MJ, Harrigan KA, Santesso DL, Graydon C, Fugelsang JA, Collins K (2014). The impact of sound in modern multiline video slot machine play. Journal of Gambling Studies 30:913–929.
- Dixon MJ, Harrigan KA, Sandhu R, Collins K, Fugelsang JA (2010). Losses disguised as wins in modern multi-line video slot machines. Addiction 105:1819–1824.
- Harrigan KA (2008). Slot machine structural characteristics: creating near misses using high award symbol ratios. International Journal of Mental Health and Addiction 6:353–368.
- Gambling Commission, Great Britain (2021). Rules for the design of online slot games, in force from 31 October 2021.
Next: Part 8. The feed: why a sequence of cues holds the player.