powerstars

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BetLines = slot.BetLinesNvm10

Bet lines

View Source
var ChanceMap = slot.ReadMap[float64](chance)
View Source
var Info = game.GameInfo{
	Aliases: []game.GameAlias{
		{Prov: "Novomatic", Name: "Power Stars"},
	},
	GP: game.GPsel |
		game.GPrline |
		game.GPfgno |
		game.GPwild,
	SX:  5,
	SY:  3,
	SN:  len(LinePay),
	LN:  len(BetLines),
	BN:  0,
	RTP: game.MakeRtpList(ChanceMap),
}
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},
	{},
}

Lined payment.

View Source
var Reels = slot.ReadObj[*slot.Reels5x](reels)

Functions

func AnyStarProb

func AnyStarProb(b float64) float64

Returns the probability of getting at least one star on the 3 reels, including several stars at once.

func BruteForceStars

func BruteForceStars(ctx context.Context, s slot.Stater, g *Game, reels slot.Reels, wc2, wc3, wc4 bool)

func CalcStat

func CalcStat(ctx context.Context, mrtp float64) (rtp float64)

func CalcStatStars

func CalcStatStars(ctx context.Context, wc2, wc3, wc4 bool) float64

Types

type Game

type Game struct {
	slot.Slotx[slot.Screen5x3] `yaml:",inline"`
	// Pinned reel wild
	PRW [5]int `json:"prw" yaml:"prw" xml:"prw"`
}

func NewGame

func NewGame() *Game

func (*Game) Apply

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

func (*Game) Clone added in v0.8.0

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

func (*Game) FreeSpins

func (g *Game) FreeSpins() bool

func (*Game) ScanLined

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

Lined symbols calculation.

func (*Game) Scanner

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

func (*Game) SetSel

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

func (*Game) Spin

func (g *Game) Spin(mrtp float64)

Jump to

Keyboard shortcuts

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