champagne

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Ebot float64 // expectation of 1 bottle
	Emjc float64 // Bottle game calculated expectation
)
View Source
var BetLines = slot.BetLinesMgj

Bet lines

View Source
var Bottles = [36]float64{
	10, 10, 10, 10, 10, 10,
	20, 20, 20, 20, 20, 20,
	30, 30, 30, 30, 30, 30,
	50, 50, 50, 50, 50, 50,
	100, 100, 100, 100,
	150, 150, 150, 150,
	300, 300,
	500, 500,
}

len = 36, count = 630, avr bottle gain = 90.555556, M = 193.65079365079

View Source
var Info = game.GameInfo{
	Aliases: []game.GameAlias{
		{Prov: "Megajack", Name: "Champagne"},
	},
	GP: game.GPsel |
		game.GPretrig |
		game.GPfgmult |
		game.GPscat |
		game.GPwild,
	SX:  5,
	SY:  3,
	SN:  len(LinePay),
	LN:  len(BetLines),
	BN:  1,
	RTP: game.MakeRtpList(ReelsMap),
}
View Source
var Jackpot = [12][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, jid},
	{0, 0, 0, 0, 0},
}

Jackpot win combinations.

View Source
var LineBonus = [12][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, mjc},
}

Lined bonus games

View Source
var LinePay = [12][5]float64{
	{},
	{0, 3, 5, 20, 100},
	{0, 3, 5, 20, 100},
	{0, 0, 5, 20, 100},
	{0, 0, 5, 20, 100},
	{0, 0, 5, 20, 100},
	{0, 0, 5, 20, 100},
	{0, 0, 5, 20, 100},
	{0, 5, 10, 20, 1000},
	{0, 7, 10, 20, 1000},
	{0, 10, 100, 2000, 10000},
	{},
}

Lined payment.

View Source
var ReelsMap = slot.ReadMap[*slot.Reels5x](reels)
View Source
var ScatFreespinBon = [5]int{0, 0, 30, 30, 30} // 1 dollar

Scatter freespins table

View Source
var ScatFreespinReg = [5]int{0, 0, 15, 15, 15} // 1 dollar

Scatter freespins table

View Source
var ScatPay = [5]float64{0, 0, 0, 0, 1000} // 1 dollar

Scatters payment.

Not from lined paytable.

Functions

func CalcStatBon

func CalcStatBon(ctx context.Context, mrtp float64) float64

func CalcStatReg

func CalcStatReg(ctx context.Context, mrtp float64) float64

func ChampagneSpawn

func ChampagneSpawn(bet float64) (any, float64)

func ExpBottle

func ExpBottle()

Types

type Game

type Game struct {
	slot.Slotx[slot.Screen5x3] `yaml:",inline"`
}

func NewGame

func NewGame() *Game

func (*Game) Clone added in v0.8.0

func (g *Game) Clone() slot.SlotGame

func (*Game) ScanLined

func (g *Game) ScanLined(wins *slot.Wins)

Lined symbols calculation.

func (*Game) ScanScatters

func (g *Game) ScanScatters(wins *slot.Wins)

Scatters calculation.

func (*Game) Scanner

func (g *Game) Scanner(wins *slot.Wins)

func (*Game) SetSel

func (g *Game) SetSel(sel int) error

func (*Game) Spawn

func (g *Game) Spawn(wins slot.Wins)

func (*Game) Spin

func (g *Game) Spin(mrtp float64)

type WinBottle

type WinBottle struct {
	Mult float64 `json:"mult" yaml:"mult" xml:"mult,attr"` // bet multiplier
	Pay  float64 `json:"pay" yaml:"pay" xml:"pay,attr"`    // pay by this cell
}

Jump to

Keyboard shortcuts

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