processor

package
v0.0.0-...-f4abbc8 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

Processor processing outcomes

func New

New processor with config "c"

func (*Processor) CheckWins

func (p *Processor) CheckWins(outcome []string, bet int64) (*SpinResult, error)

CheckWins returns results of current outcome and bet

func (*Processor) GenerateOutcome

func (p *Processor) GenerateOutcome() (outcome []string)

GenerateOutcome return random outcome of display symbols

type SpinResult

type SpinResult struct {
	Type   string `json:"type"`
	Total  int64  `json:"total"`
	Stops  []int  `json:"stops"`
	IsFree bool
}

SpinResult is struct for storing result of current spin

Jump to

Keyboard shortcuts

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