powerstars

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChanceMap = map[float64]float64{

	86.049978: 1 / 82.,

	87.986326: 1 / 74.,

	90.081711: 1 / 67.,

	91.128401: 1 / 64.,

	91.885902: 1 / 62.,

	94.027604: 1 / 57.,

	95.000746: 1 / 55.,

	96.052493: 1 / 53.,

	97.799579: 1 / 50.,

	99.787205: 1 / 47.,

	111.502592: 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 = slot.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 BruteForceStars

func BruteForceStars(ctx context.Context, s slot.Stater, g slot.SlotGame, reels slot.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

func FindChance

func FindChance(mrtp float64) (rtp float64, chance float64)

Types

type Game

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

func NewGame

func NewGame() *Game

func (*Game) Apply

func (g *Game) Apply(screen slot.Screen, wins slot.Wins)

func (*Game) FreeSpins

func (g *Game) FreeSpins() int

func (*Game) ScanLined

func (g *Game) ScanLined(screen slot.Screen, wins *slot.Wins)

Lined symbols calculation.

func (*Game) Scanner

func (g *Game) Scanner(screen slot.Screen, wins *slot.Wins)

func (*Game) SetSel

func (g *Game) SetSel(sel slot.Bitset) error

func (*Game) Spin

func (g *Game) Spin(screen slot.Screen, mrtp float64)

Jump to

Keyboard shortcuts

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