Documentation ¶
Index ¶
- Constants
- func CutSymbolLink(symbolLine []int, option PlateOption) []int
- func LineMulitResult(line []int, option PlateOption) [][]int
- func NewPlate(plateSize []int, scroll [][]int) ([]int, []int)
- func NewPlate2D(plateSize []int, scroll [][]int) ([][]int, [][]int)
- func NewPlateOneByOne2D(plateSize []int, scroll [][]int) ([][]int, [][]int)
- func PlateSymbolCollect(targetSymbolNum int, plate [][]int, option PlateOption, ...) map[string]interface{}
- func PlateSymbolCount(targetSymbol int, plate [][]int) int
- func PlateSymbolPoint(targetSymbol int, plate [][]int) (int, [][]int)
- func PlateToLinePlate(plate [][]int, lineMap [][]int) [][]int
- func ResultMap(scrollIndex, plate interface{}, scores int64, islink bool) map[string]interface{}
- func ResultMap243(scrollIndex, plate, gameresult interface{}) map[string]interface{}
- func ResultMapLine(scrollIndex, plate, gameresult interface{}) map[string]interface{}
- type InfoLine
- type InfoLine243
- type PlateOption
Constants ¶
const EmptyNum = -9999
EmptyNum is mean not this symbol
Variables ¶
This section is empty.
Functions ¶
func CutSymbolLink ¶
func CutSymbolLink(symbolLine []int, option PlateOption) []int
CutSymbolLink get line link array
func LineMulitResult ¶
func LineMulitResult(line []int, option PlateOption) [][]int
LineMulitResult return line mulit win if was
func NewPlate2D ¶
NewPlate2D plate
func NewPlateOneByOne2D ¶
NewPlateOneByOne2D ....
func PlateSymbolCollect ¶
func PlateSymbolCollect(targetSymbolNum int, plate [][]int, option PlateOption, funcOption map[string]interface{}) map[string]interface{}
PlateSymbolCollect collect symbol in plate
func PlateSymbolCount ¶
PlateSymbolCount collect target symbol
func PlateSymbolPoint ¶
PlateSymbolPoint collect target symbol point
func PlateToLinePlate ¶
PlateToLinePlate ...
func ResultMap243 ¶
func ResultMap243(scrollIndex, plate, gameresult interface{}) map[string]interface{}
ResultMap243 game result base info
func ResultMapLine ¶
func ResultMapLine(scrollIndex, plate, gameresult interface{}) map[string]interface{}
ResultMapLine game result base info
Types ¶
type InfoLine ¶
type InfoLine struct { // plate info ScotterPoint [][]int `json:"ScotterPoint"` WildPoint [][]int `json:"WildPoint"` LineSymbolPoint [][]int `json:"LineSymbolPoint"` LineSymbolNum [][]int `json:"LineSymbolNum"` LineWinIndex int `json:"LineWinIndex"` // pay info Score int64 `json:"Score"` JackPotScore int64 `json:"JackPotScore"` SpecialWinRate int64 `json:"SpecialWinRate"` LineWinRate int `json:"LineWinRate"` }
InfoLine minimum result structure
func (*InfoLine) AddEmptyPoint ¶
func (I *InfoLine) AddEmptyPoint()
AddEmptyPoint add new empty point
func (*InfoLine) AddNewLine ¶
func (I *InfoLine) AddNewLine(symbolNums []int, linePoint []int, option PlateOption)
AddNewLine ...
func (*InfoLine) AddNewPoint ¶
func (I *InfoLine) AddNewPoint(symbolNum int, point int, option PlateOption)
AddNewPoint add new line point
type InfoLine243 ¶
type InfoLine243 struct { // plate info ScotterPoint [][]int `json:"ScotterPoint"` WildPoint [][]int `json:"WildPoint"` WinSymbolPoint [][]int `json:"WinSymbolPoint"` WinSymbolNum [][]int `json:"WinSymbolNum"` // pay info Score int64 `json:"Score"` JackPotScore int64 `json:"JackPotScore"` SpecialWinRate int64 `json:"SpecialWinRate"` LineWinRate int `json:"LineWinRate"` }
InfoLine243 minimum result structure
func (*InfoLine243) AddNewPoint ¶
func (I *InfoLine243) AddNewPoint(symbolNum int, point int, option PlateOption)
AddNewPoint add new line point
func (*InfoLine243) AddNewWinSymol ¶
func (I *InfoLine243) AddNewWinSymol(symbolNums []int, linePoint []int, option PlateOption)
AddNewWinSymol ...
type PlateOption ¶
type PlateOption struct { Wild []int // symbol index Scotter []int // symbol index Space []int // symbol index Group map[int][]int // groupID symbol index LineMiniCount int }
PlateOption plate symbol index option
func (*PlateOption) EmptyNum ¶
func (p *PlateOption) EmptyNum() int
EmptyNum this number don't use, is use compare does symbol set.
func (*PlateOption) IsScotter ¶
func (p *PlateOption) IsScotter(item int) (bool, int)
IsScotter Scotter compare