jewels4all

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChanceMap = map[string]float64{

	"90": 1 / 237.,

	"92": 1 / 218.,

	"94": 1 / 202.,

	"96": 1 / 187.,

	"98": 1 / 175.,

	"100": 1 / 165.,

	"110": 1 / 125.,
}

Map with wild chances.

View Source
var Jackpot = [8][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},
}

Jackpot win combinations.

View Source
var LinePay = [8][5]float64{
	{0, 0, 20, 100, 1000},
	{0, 0, 10, 60, 500},
	{0, 0, 10, 60, 500},
	{0, 0, 5, 40, 200},
	{0, 0, 5, 40, 200},
	{0, 0, 5, 20, 100},
	{0, 0, 5, 20, 100},
	{0, 0, 0, 0, 0},
}

Lined payment.

View Source
var Reels = game.Reels5x{
	{1, 1, 1, 2, 2, 2, 6, 6, 3, 3, 3, 7, 7, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7},
	{1, 1, 1, 2, 2, 2, 6, 6, 3, 3, 3, 7, 7, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7},
	{1, 1, 1, 2, 2, 2, 6, 6, 3, 3, 3, 7, 7, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7},
	{1, 1, 1, 2, 2, 2, 6, 6, 3, 3, 3, 7, 7, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7},
	{1, 1, 1, 2, 2, 2, 6, 6, 3, 3, 3, 7, 7, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7},
}

RTP(no eu) = 67.344781% RTP(eu at y=1,5) = 1706.345577% RTP(eu at y=2,3,4) = 7818.930041% euro avr: rtpeu = 5373.896256%

Functions

func BruteForce5x

func BruteForce5x(ctx context.Context, s game.Stater, g game.SlotGame, reels game.Reels, x, y int)

func CalcStat

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

func CalcStatEuro

func CalcStatEuro(ctx context.Context, x, y int) float64

Types

type Game

type Game struct {
	game.Slot5x3 `yaml:",inline"`
}

func NewGame

func NewGame(rd string) *Game

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