logic

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: 6 Imported by: 0

Documentation

Overview

功能:判断牌型 说明:

功能:逻辑-计算点数 说明:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Analyse_card_type

func Analyse_card_type(cards []byte) CARD_TYPE.TYPE

判断牌型

func Analyse_hand_type

func Analyse_hand_type(player_cards []byte) HAND_TYPE.TYPE

分析hand type

func Dealer_pick_best_point

func Dealer_pick_best_point(points []int) int

庄家选择最恰当的点数

func Player_pick_best_point_to_compare

func Player_pick_best_point_to_compare(points []int) int

闲家在比牌时候,选择最恰当的点数

func Player_pick_best_point_to_query

func Player_pick_best_point_to_query(hand_type HAND_TYPE.TYPE, points []int) int

闲家在查询时候,选择最恰当的点数

func Point

func Point(card byte) int

点数

func Points

func Points(cards []byte) (points []int, points_txt string)

点数 从小到大排序

Types

This section is empty.

Jump to

Keyboard shortcuts

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