Documentation ¶
Overview ¶
功能:手牌 说明:
功能:用户信息 说明:
功能:用户统计 说明:
Index ¶
- type HandCard
- func (h *HandCard) Append_card(card byte)
- func (h *HandCard) Append_cards(cards []byte)
- func (h *HandCard) Card_cnt() int
- func (h *HandCard) Card_type() CARD_TYPE.TYPE
- func (h *HandCard) Cards() []byte
- func (h *HandCard) Double_down()
- func (h *HandCard) Get_bet_amount() int
- func (h *HandCard) Get_score() float64
- func (h *HandCard) Hand_type() HAND_TYPE.TYPE
- func (h *HandCard) Is_result() bool
- func (h *HandCard) Is_split() bool
- func (h *HandCard) Is_surrender() bool
- func (h *HandCard) Set_bet_amount(bet_amount int)
- func (h *HandCard) Surrender()
- type UserInfo
- func (u *UserInfo) Current_hand() *HandCard
- func (u *UserInfo) Deal(cards []byte, bet_amount int)
- func (u *UserInfo) Extract_user_stat() *UserStat
- func (u *UserInfo) Get_chip() float64
- func (u *UserInfo) Get_init_chip() float64
- func (u *UserInfo) Get_profit() float64
- func (u *UserInfo) Hand_cnt() int
- func (u *UserInfo) Is_all_bust_or_surrender() (is bool, points []int, surrender_cnt int, bust_cnt int)
- func (u *UserInfo) Next_hand() error
- func (u *UserInfo) Reset_hand_index()
- func (u *UserInfo) Split_card(right_card byte) ([]byte, []byte)
- func (u *UserInfo) Update_score(score float64)
- type UserStat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandCard ¶
type HandCard struct {
// contains filtered or unexported fields
}
func NewHandCard ¶
func NewHandCard() *HandCard
func (*HandCard) Append_cards ¶
Click to show internal directories.
Click to hide internal directories.