bookofra

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BetLines = slot.BetLinesNvm10

Bet lines

View Source
var Info = game.GameInfo{
	Aliases: []game.GameAlias{
		{Prov: "Novomatic", Name: "Book of Ra"},
		{Prov: "Novomatic", Name: "Book of Ra Deluxe"},
		{Prov: "Novomatic", Name: "Gate of Ra Deluxe"},
		{Prov: "Novomatic", Name: "Golden Prophecies"},
		{Prov: "Novomatic", Name: "Down Under"},
		{Prov: "Novomatic", Name: "God of Sun"},
		{Prov: "Novomatic", Name: "Lord of the Ocean"},
		{Prov: "Novomatic", Name: "Faust"},
		{Prov: "Novomatic", Name: "The Real King Gold Records"},
	},
	GP: game.GPsel |
		game.GPretrig |
		game.GPfgreel |
		game.GPscat |
		game.GPwild,
	SX:  5,
	SY:  3,
	SN:  len(LinePay),
	LN:  len(BetLines),
	BN:  0,
	RTP: game.MakeRtpList(ReelsMap),
}
View Source
var LinePay = [10][5]float64{
	{0, 10, 100, 1000, 5000},
	{0, 5, 40, 400, 2000},
	{0, 5, 30, 100, 750},
	{0, 5, 30, 100, 750},
	{0, 0, 5, 40, 150},
	{0, 0, 5, 40, 150},
	{0, 0, 5, 25, 100},
	{0, 0, 5, 25, 100},
	{0, 0, 5, 25, 100},
	{0, 0, 0, 0, 0},
}

Lined payment.

View Source
var ReelsBon = slot.ReadObj[*slot.Reels5x](rbon)
View Source
var ReelsMap = slot.ReadMap[*slot.Reels5x](reels)
View Source
var ScatFreespin = [5]int{0, 0, 10, 10, 10} // 10 tomb

Scatter freespins table

View Source
var ScatPay = [5]float64{0, 0, 2, 20, 200} // 10 tomb

Scatters payment.

Functions

func CalcStatBon

func CalcStatBon(ctx context.Context, es slot.Sym) float64

func CalcStatReg

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

func LineES

func LineES(src, xye slot.Linex) (dst slot.Linex)

Types

type Game

type Game struct {
	slot.Slotx[slot.Screen5x3] `yaml:",inline"`
	// Expanding Symbol
	ES slot.Sym `json:"es" yaml:"es" xml:"es"`
}

func NewGame

func NewGame() *Game

func (*Game) Apply

func (g *Game) Apply(wins slot.Wins)

func (*Game) Clone

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

func (*Game) Prepare

func (g *Game) Prepare()

func (*Game) ScanLined

func (g *Game) ScanLined(wins *slot.Wins)

Lined symbols calculation.

func (*Game) ScanScatters

func (g *Game) ScanScatters(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