mathtoolset

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnkonow - unknow error
	ErrUnkonow = errors.New("unknow error")

	// ErrInvalidReel - invalid reel
	ErrInvalidReel = errors.New("invalid reel")
)

Functions

func CalcSymbolWinsInReelsWithLine

func CalcSymbolWinsInReelsWithLine(rss *ReelsStats, symbol SymbolType, num int) int64

func HasSymbol

func HasSymbol(symbols []SymbolType, symbol SymbolType) bool

Types

type ReelStats

type ReelStats struct {
	MapSymbols     map[SymbolType]*SymbolStats
	TotalSymbolNum int
}

func BuildReelStats

func BuildReelStats(reel []int) (*ReelStats, error)

func NewReelStats

func NewReelStats() *ReelStats

func (*ReelStats) GetSymbolStats

func (rs *ReelStats) GetSymbolStats(symbol SymbolType) *SymbolStats

type ReelsStats

type ReelsStats struct {
	Reels   []*ReelStats
	Symbols []SymbolType
}

func BuildReelsStats

func BuildReelsStats(reels *sgc7game.ReelsData) (*ReelsStats, error)

func (*ReelsStats) HasSymbols

func (rss *ReelsStats) HasSymbols(symbol SymbolType) bool

func (*ReelsStats) SaveExcel

func (rss *ReelsStats) SaveExcel(fn string) error

type SymbolStats

type SymbolStats struct {
	Symbol SymbolType
	Num    int
}

type SymbolType

type SymbolType int

type SymbolWinsStats

type SymbolWinsStats struct {
	Symbol  SymbolType
	WinsNum []int64
	Wins    []int64
}

type SymbolsWinsFileMode

type SymbolsWinsFileMode int
const (
	RTPMode     SymbolsWinsFileMode = 1
	WinsNumMode SymbolsWinsFileMode = 2
	WinsMode    SymbolsWinsFileMode = 3
)

type SymbolsWinsStats

type SymbolsWinsStats struct {
	MapSymbols map[SymbolType]*SymbolWinsStats
	Symbols    []SymbolType
	Num        int
	Total      int64
}

func AnalyzeReelsWithLine

func AnalyzeReelsWithLine(paytables *sgc7game.PayTables, reels *sgc7game.ReelsData,
	symbols []SymbolType, betMul int, lineNum int) (*SymbolsWinsStats, error)

func NewSymbolsWinsStats

func NewSymbolsWinsStats(num int) *SymbolsWinsStats

func (*SymbolsWinsStats) GetSymbolWinsStats

func (ssws *SymbolsWinsStats) GetSymbolWinsStats(symbol SymbolType) *SymbolWinsStats

func (*SymbolsWinsStats) SaveExcel

func (ssws *SymbolsWinsStats) SaveExcel(fn string, fm SymbolsWinsFileMode) error

Jump to

Keyboard shortcuts

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