chicago

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Jackpot = [13][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},
	{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 = [13][5]float64{
	{0, 10, 250, 2500, 10000},
	{0, 0, 50, 500, 2000},
	{0, 0, 50, 500, 2000},
	{0, 0, 30, 200, 1000},
	{0, 0, 20, 100, 500},
	{0, 0, 20, 100, 500},
	{0, 0, 10, 50, 250},
	{0, 0, 10, 50, 250},
	{0, 0, 5, 20, 100},
	{0, 0, 5, 20, 100},
	{0, 0, 5, 20, 100},
	{0, 0, 5, 20, 100},
	{0, 0, 0, 0, 0},
}

Lined payment.

View Source
var MultChoose = []float64{1, 1, 1, 2, 2, 2, 3, 3, 5, 10} // E = 3.0
View Source
var ReelsMap = map[string]*game.Reels5x{
	"96": &ReelsReg96,
}

Map with available reels.

View Source
var ReelsReg96 = game.Reels5x{
	{11, 10, 4, 8, 6, 7, 3, 8, 5, 10, 2, 12, 11, 4, 9, 13, 6, 11, 2, 7, 6, 9, 5, 8, 3, 12, 4, 7, 2, 10, 1, 9, 5, 12, 3},
	{5, 9, 4, 11, 1, 12, 6, 10, 5, 8, 2, 12, 7, 6, 9, 2, 8, 4, 11, 3, 13, 5, 7, 6, 9, 12, 3, 7, 4, 11, 3, 10, 8, 2, 10},
	{9, 5, 7, 9, 4, 12, 8, 7, 3, 10, 2, 11, 5, 9, 2, 11, 4, 8, 6, 10, 2, 12, 5, 7, 4, 13, 6, 10, 1, 11, 3, 12, 6, 8, 3},
	{12, 9, 2, 7, 5, 10, 4, 13, 6, 12, 4, 9, 7, 11, 4, 12, 3, 7, 2, 11, 1, 8, 3, 10, 5, 8, 6, 9, 5, 10, 6, 8, 3, 11, 2},
	{11, 6, 12, 4, 10, 2, 13, 5, 8, 2, 12, 5, 11, 4, 7, 12, 3, 8, 6, 9, 5, 7, 3, 10, 9, 4, 8, 7, 3, 10, 2, 11, 6, 9, 1},
}

reels lengths [35, 35, 35, 35, 35], total reshuffles 52521875 symbols: 65.165(lined) + 14.402(scatter) = 79.567228% free spins 3476196, q = 0.066186, sq = 1/(1-q) = 1.070877 RTP = 79.567(sym) + 0.066186*85.207(fg)*3 = 96.485616%

View Source
var ScatFreespin = [5]int{0, 0, 12, 12, 12} // 13 cadillac

Scatter freespins table

View Source
var ScatPay = [5]float64{0, 2, 5, 20, 100} // 13 cadillac

Scatters payment.

Functions

func CalcStat

func CalcStat(ctx context.Context, rn string) float64

Types

type Game

type Game struct {
	game.Slot5x3 `yaml:",inline"`
	FS           int     `json:"fs" yaml:"fs" xml:"fs"`       // free spin number
	Mult         float64 `json:"mult" yaml:"mult" xml:"mult"` // multiplier on freespins
}

func NewGame

func NewGame(rd string) *Game

func (*Game) Apply

func (g *Game) Apply(screen game.Screen, sw *game.WinScan)

func (*Game) FreeSpins

func (g *Game) FreeSpins() int

func (*Game) ScanLined

func (g *Game) ScanLined(screen game.Screen, ws *game.WinScan)

Lined symbols calculation.

func (*Game) ScanScatters

func (g *Game) ScanScatters(screen game.Screen, ws *game.WinScan)

Scatters calculation.

func (*Game) Scanner

func (g *Game) Scanner(screen game.Screen, ws *game.WinScan)

func (*Game) SetLines

func (g *Game) SetLines(sbl game.SBL) error

func (*Game) SetReels

func (g *Game) SetReels(rd string) error

func (*Game) Spin

func (g *Game) Spin(screen game.Screen)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL