baccarat_task_points

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 13 Imported by: 0

README

Baccarat,8副牌[8*52=416张],庄对闲对统计,总运行次数1w次

统计类别出现次数百分比总手数
庄对507656.30%805779
闲对511966.35%

Baccarat,8副牌[8*52=416张],点数次数统计,总运行次数1w次

闲家点数出现次数百分比总手数
0759019.42%806123
1597217.41%
2599527.44%
3602787.48%
4596437.40%
5604647.50%
610739213.32%
710798713.40%
810725813.31%
910752713.34%

Baccarat,8副牌[8*52=416张],点数次数统计,总运行次数1w次

庄家点数出现次数百分比总手数
0714948.87%806123
1559956.95%
2555016.88%
3585167.26%
4752319.33%
58107710.06%
69761712.11%
710366512.86%
810313812.79%
910388912.89%

Documentation

Overview

功能:百家乐任务-统计庄家/闲家点数分布 说明:流程控制

功能:百家乐任务-统计庄家/闲家点数分布 说明:

功能:百家乐任务-统计庄家/闲家点数分布 说明:点数次数map

功能:百家乐任务-统计庄家/闲家点数分布 说明:

功能:百家乐任务-统计庄家/闲家点数分布 说明:

Index

Constants

View Source
const (
	TASK_TAG = "baccarat_task_points" //任务名称
	DECKS    = 8                      //牌副数
)
View Source
const (
	GO_ROUTINE_CNT = 1 //goroutine个数
	LOOP_TIMES     = 1 //每个goroutine循环次数

)
View Source
const (
	PLAYER_INIT_CHIP = 10000
)

Variables

View Source
var (
	Player_point_times_map = make(map[int]int, 0) //key为点数,value为次数
	Dealer_point_times_map = make(map[int]int, 0) //key为点数,value为次数
)

Functions

func Init_point_times_map

func Init_point_times_map()

初始化

func Outputer_point_times_map

func Outputer_point_times_map(Point_times_map map[int]int, title string)

输出

func Start

func Start()

开启

Types

type FlowControl

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

func NewFlowControl

func NewFlowControl() *FlowControl

func (*FlowControl) Check_natural

func (f *FlowControl) Check_natural() error

校验natural牌型

func (*FlowControl) Compare

func (f *FlowControl) Compare()

比牌

func (*FlowControl) Deal_1_card

func (f *FlowControl) Deal_1_card() byte

发一张牌

func (*FlowControl) Deal_times

func (f *FlowControl) Deal_times() int

发牌次数

func (*FlowControl) Dealer_turn

func (f *FlowControl) Dealer_turn() error

庄家操作

func (*FlowControl) Extract_shoe_stat

func (f *FlowControl) Extract_shoe_stat() *ShoeStat

提取每靴牌的统计

func (*FlowControl) Game_over

func (f *FlowControl) Game_over()

游戏结束

func (*FlowControl) Is_valid_shoe_cards

func (f *FlowControl) Is_valid_shoe_cards() bool

剩下的shoe牌是否有效

func (*FlowControl) Player_turn

func (f *FlowControl) Player_turn() error

闲家操作

func (*FlowControl) Round_begin_to_deal

func (f *FlowControl) Round_begin_to_deal() error

发牌

func (*FlowControl) Round_end

func (f *FlowControl) Round_end()

本轮结束

func (*FlowControl) Shuffle

func (f *FlowControl) Shuffle()

洗牌

type ShoeStat

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

每靴牌统计

func (*ShoeStat) String

func (s *ShoeStat) String() string

Jump to

Keyboard shortcuts

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