Documentation ¶
Overview ¶
功能:blackjack任务-dealer爆牌率 说明:流程控制
功能:blackjack任务-dealer爆牌率 说明:
功能:blackjack任务-dealer爆牌率 说明:点数次数map
功能:blackjack任务-dealer爆牌率 说明:每靴牌统计
功能:blackjack任务-dealer爆牌率 说明:
Index ¶
- Constants
- Variables
- func Init_point_times_map()
- func Outputer_point_times_map()
- func Start()
- func Start_ex()
- type FlowControl
- func (f *FlowControl) Check_blackjack() error
- func (f *FlowControl) Deal_1_card() byte
- func (f *FlowControl) Deal_times() int
- func (f *FlowControl) Dealer_turn() error
- func (f *FlowControl) Extract_shoe_stat() *ShoeStat
- func (f *FlowControl) Is_valid_shoe_cards() bool
- func (f *FlowControl) Round_begin_to_deal(show_card byte) error
- func (f *FlowControl) Shuffle()
- type ShoeStat
Constants ¶
View Source
const ( GO_ROUTINE_CNT = 10 //goroutine个数 LOOP_TIMES = 10000 //每个goroutine循环次数 )
View Source
const (
TASK_TAG = "blackjack_task_dealer_bust_rate" //任务名称
)
Variables ¶
View Source
var (
Point_times_map = make(map[int]int, 0) //key为点数,value为次数
)
Functions ¶
Types ¶
type FlowControl ¶
type FlowControl struct {
// contains filtered or unexported fields
}
func NewFlowControl ¶
func NewFlowControl() *FlowControl
func (*FlowControl) Check_blackjack ¶
func (f *FlowControl) Check_blackjack() error
Check_blackjack 校验blackjack牌型
func (*FlowControl) Extract_shoe_stat ¶
func (f *FlowControl) Extract_shoe_stat() *ShoeStat
Extract_shoe_stat 提取每靴牌的统计
func (*FlowControl) Is_valid_shoe_cards ¶
func (f *FlowControl) Is_valid_shoe_cards() bool
Is_valid_shoe_cards 剩下的shoe牌是否有效
func (*FlowControl) Round_begin_to_deal ¶
func (f *FlowControl) Round_begin_to_deal(show_card byte) error
Round_begin_to_deal 发牌
Click to show internal directories.
Click to hide internal directories.