powerstars

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 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

func AnyStarProb(b float64) float64

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

func BruteForce5x

func BruteForce5x(ctx context.Context, s game.Stater, g game.SlotGame, reels game.Reels, wc2, wc3, wc4 bool)

func CalcStat

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

func CalcStatStars

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

Types

type Game

type Game struct {
	game.Slot5x3 `yaml:",inline"`
	PRW          [5]int `json:"prw" yaml:"prw" xml:"prw"` // pinned reel wild
}

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) 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