fortuneteller

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BetLines = []slot.Linex{
	{2, 2, 2, 2, 2},
	{1, 1, 1, 1, 1},
	{3, 3, 3, 3, 3},
	{1, 2, 3, 2, 1},
	{3, 2, 1, 2, 3},
	{2, 1, 1, 1, 2},
	{2, 3, 3, 3, 2},
	{1, 1, 2, 3, 3},
	{3, 3, 2, 1, 1},
	{2, 3, 2, 1, 2},
	{2, 1, 2, 3, 2},
	{1, 2, 2, 2, 1},
	{3, 2, 2, 2, 3},
	{1, 2, 1, 2, 1},
	{3, 2, 3, 2, 3},
	{2, 2, 1, 2, 2},
	{2, 2, 3, 2, 2},
	{1, 1, 3, 1, 1},
	{3, 3, 1, 3, 3},
	{1, 3, 3, 3, 1},
}

Bet lines

View Source
var Ecards float64
View Source
var Info = game.GameInfo{
	Aliases: []game.GameAlias{
		{Prov: "Play'n GO", Name: "Fortune Teller"},
	},
	GP: game.GPsel |
		game.GPfghas |
		game.GPscat |
		game.GPwild,
	SX:  5,
	SY:  3,
	SN:  len(LinePay),
	LN:  len(BetLines),
	BN:  1,
	RTP: game.MakeRtpList(ReelsMap),
}
View Source
var LinePay = [12][5]float64{
	{0, 0, 50, 500, 5000},
	{},
	{},
	{0, 0, 25, 250, 1000},
	{0, 0, 15, 100, 500},
	{0, 0, 15, 100, 500},
	{0, 0, 15, 75, 250},
	{0, 0, 10, 50, 150},
	{0, 0, 10, 50, 150},
	{0, 0, 5, 25, 100},
	{0, 0, 5, 25, 100},
	{0, 0, 5, 25, 100},
}

Lined payment.

View Source
var ReelsMap = slot.ReadMap[*slot.Reels5x](reels)
View Source
var ScatFreespin = [5]int{0, 0, 15, 20, 25} // 2 cat

Scatter freespins table

View Source
var ScatPay = [5]float64{0, 2, 3, 30, 300} // 2 cat

Scatters payment.

Functions

func CalcStatBon

func CalcStatBon(ctx context.Context, mrtp float64) float64

func CalcStatReg

func CalcStatReg(ctx context.Context, mrtp float64) float64

func CardsWin

func CardsWin(c1, c2, c3 int) float64

func ExpCards

func ExpCards()

Types

type Game

type Game struct {
	slot.Slotx[slot.Screen5x3] `yaml:",inline"`
}

func NewGame

func NewGame() *Game

func (*Game) Clone added in v0.8.0

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

func (*Game) ScanLinedBon

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

Lined symbols calculation on free spins.

func (*Game) ScanLinedReg

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

Lined symbols calculation on regular games.

func (*Game) ScanScattersBon

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

Scatters calculation.

func (*Game) ScanScattersReg

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

Scatters 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