jewels

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Jackpot win combinations.

View Source
var LinePay = [7][5]float64{
	{0, 0, 20, 200, 2000},
	{0, 0, 15, 100, 500},
	{0, 0, 15, 100, 500},
	{0, 0, 10, 50, 200},
	{0, 0, 10, 50, 200},
	{0, 0, 5, 25, 100},
	{0, 0, 5, 25, 100},
}

Lined payment.

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

reels lengths [23, 23, 23, 23, 23], total reshuffles 6436343 RTP = 99.78647812896236%

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

reels lengths [21, 21, 21, 21, 21], total reshuffles 4084101 RTP = 117.80805616707323%

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

reels lengths [27, 27, 27, 27, 27], total reshuffles 14348907 RTP = 88.89513326694501%

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

reels lengths [27, 27, 25, 27, 27], total reshuffles 13286025 RTP = 89.84989867172462%

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

reels lengths [27, 27, 21, 27, 27], total reshuffles 11160261 RTP = 91.00109755497654%

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

reels lengths [25, 25, 27, 25, 25], total reshuffles 10546875 RTP = 92.98564740740741%

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

reels lengths [27, 21, 27, 21, 27], total reshuffles 8680203 RTP = 95.01621102640111%

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

reels lengths [25, 25, 25, 25, 25], total reshuffles 9765625 RTP = 96.0811008%

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

reels lengths [21, 27, 21, 27, 21], total reshuffles 6751269 RTP = 97.61364863405679%

View Source
var ReelsMap = map[float64]*game.Reels5x{
	88.89513326694501:  &Reels89,
	89.84989867172462:  &Reels90,
	91.00109755497654:  &Reels91,
	92.98564740740741:  &Reels93,
	95.01621102640111:  &Reels95,
	96.0811008:         &Reels96,
	97.61364863405679:  &Reels98,
	99.78647812896236:  &Reels100,
	117.80805616707323: &Reels118,
}

Map with available reels.

Functions

func CalcStat

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

func FindReels added in v0.3.0

func FindReels(mrtp float64) (rtp float64, reels game.Reels)

Types

type Game

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

func NewGame

func NewGame() *Game

func (*Game) ScanLined

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

Lined symbols calculation.

func (*Game) Scanner

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

func (*Game) SetLines

func (g *Game) SetLines(sbl game.Bitset) error

func (*Game) Spin

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

Jump to

Keyboard shortcuts

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