Documentation ¶
Index ¶
- Variables
- func AnyStarProb(b float64) float64
- func BruteForce5x(ctx context.Context, s game.Stater, g game.SlotGame, reels game.Reels, ...)
- func CalcStat(ctx context.Context, rn string) (rtp float64)
- func CalcStatStars(ctx context.Context, wc2, wc3, wc4 bool) float64
- type Game
- func (g *Game) Apply(screen game.Screen, sw *game.WinScan)
- func (g *Game) FreeSpins() int
- func (g *Game) ScanLined(screen game.Screen, ws *game.WinScan)
- func (g *Game) Scanner(screen game.Screen, ws *game.WinScan)
- func (g *Game) SetLines(sbl game.SBL) error
- func (g *Game) SetReels(rd string) error
- func (g *Game) Spin(screen game.Screen)
Constants ¶
This section is empty.
Variables ¶
View Source
var ChanceMap = map[string]float64{
"86": 1 / 82.,
"88": 1 / 74.,
"90": 1 / 67.,
"91": 1 / 64.,
"92": 1 / 62.,
"94": 1 / 57.,
"95": 1 / 55.,
"96": 1 / 53.,
"98": 1 / 50.,
"100": 1 / 47.,
"112": 1 / 35.,
}
Map with wild chances.
View Source
var Jackpot = [9][5]int{
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
}
Jackpot win combinations.
View Source
var LinePay = [9][5]float64{
{0, 0, 100, 500, 1000},
{0, 0, 50, 200, 500},
{0, 0, 20, 50, 200},
{0, 0, 20, 50, 200},
{0, 0, 10, 30, 150},
{0, 0, 10, 30, 150},
{0, 0, 10, 20, 100},
{0, 0, 10, 20, 100},
{0, 0, 0, 0, 0},
}
Lined payment.
View Source
var Reels = game.Reels5x{
{2, 7, 8, 6, 4, 3, 7, 6, 5, 4, 8, 6, 7, 4, 1, 8, 6, 7, 5, 1, 8, 3, 2, 5, 6, 2, 3, 5, 4, 3, 8, 7, 5},
{5, 1, 8, 6, 4, 7, 3, 6, 8, 7, 5, 3, 7, 4, 5, 3, 8, 4, 6, 5, 3, 7, 8, 6, 2, 8, 1, 5, 6, 2, 4, 7, 2},
{5, 6, 8, 4, 7, 1, 8, 6, 4, 1, 3, 8, 2, 5, 4, 3, 8, 2, 3, 6, 7, 5, 2, 6, 7, 5, 4, 7, 5, 8, 6, 3, 7},
{6, 8, 2, 6, 3, 8, 7, 3, 1, 5, 7, 1, 3, 8, 2, 5, 8, 4, 6, 5, 4, 8, 2, 4, 7, 3, 6, 7, 5, 6, 7, 5, 4},
{6, 4, 7, 6, 5, 7, 3, 5, 2, 8, 4, 7, 2, 5, 6, 7, 3, 8, 5, 1, 2, 8, 3, 6, 4, 8, 7, 4, 5, 3, 6, 8, 1},
}
reels lengths [33, 33, 33, 33, 33], total reshuffles 39135393 RTP[---] = 69.062907% RTP[*--] = 379.939305% RTP[-*-] = 565.086545% RTP[--*] = 379.939305% RTP[**-] = 3333.277680% RTP[-**] = 3261.763642% RTP[*-*] = 1598.352673% RTP[***] = 9366.391185%
Functions ¶
func AnyStarProb ¶
Returns the probability of getting at least one star on the 3 reels, including several stars at once.
func BruteForce5x ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.