prefunc

package
v0.0.0-...-dbbf0a6 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EVInit

func EVInit()

func EvPre

func EvPre(db *gorm.DB, history model.MSGameHistory, EVType int, isFT bool)

EvPre 根据策略预测下一把的结果 输入的是当前的结果数据

func Hello

func Hello() string

func JCSJob

func JCSJob(v model.MSGameHistory) []float64

Types

type EVBase

type EVBase struct {
	Key   string  `json:"key"`
	Value float64 `json:"value"`
}

type EVMSGameHistory

type EVMSGameHistory struct {
	HistoryID   uint
	EVType      int
	Pre         int
	SOB         int
	DZ          int
	EVList      string
	Probability string
	BetAmount   decimal.Decimal
}

type GameCardEVData

type GameCardEVData struct {
	Prob            []EVBase `json:"prob"`            //概率
	EV              []EVBase `json:"ev"`              //EV值
	RecommendResult int      `json:"recommendResult"` //推荐的结果 0-不推荐 1-闲赢 2-庄赢 3-和牌
}

func Ev6

func Ev6(ResultList string) (*GameCardEVData, error)

Ev6 趋势下注法 验证 当出现连续两把一样的情况 跟注一把 其他都不推荐

type GameTotalByOneResp

type GameTotalByOneResp struct {
	ValidAmount decimal.Decimal `json:"valid_amount"` //有效流水
	BetAmount   decimal.Decimal `json:"bet_amount"`   //下注金额 默认每次下注20.0元
	WinAmount   decimal.Decimal `json:"win_amount"`   //总赢金额
	LoseAmount  decimal.Decimal `json:"lose_amount"`  //总输金额
	AllNum      int             `json:"all_num"`
	RightNum    int             `json:"right_num"` //输的话正确数量=0 赢的话正确数量=1
	ZWN         int             `json:"zwn"`       //
	XWN         int             `json:"xwn"`
	HWN         int             `json:"hwn"`
}

func GameTotalByOne

func GameTotalByOne(pre *model.EVPredictive) (GameTotalByOneResp, error)

GameTotalByOne 统计一把的输赢-返回输赢的金额与有效流水-下注金额作为参数

Jump to

Keyboard shortcuts

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