Documentation ¶
Index ¶
- Constants
- Variables
- func BytesToStr(bytes []int8) string
- func ChangeColor(k int64) int64
- func Compare(str1 string, str2 string) int
- func CompareByBytes(bytes1 []int8, bytes2 []int8) int
- func CompareByKey(k1 int64, k2 int64) int
- func GenCardBind(bytes []int8) int64
- func GetExAllTypeProbability(hand string, pub string) []float32
- func GetExAllTypeProbabilityByBytes(hand []int8, pub []int8) []float32
- func GetExHandProbability(hand string, pub string) float32
- func GetExTypeProbability(hand string, pub string, t string) float32
- func GetExTypeProbabilityByBytes(hand []int8, pub []int8, t int) float32
- func GetHandProbability(hand string, pub string) float32
- func GetMax(str string) (string, string)
- func GetMaxBytes(bytes []int8) ([]int8, []int8)
- func GetMaxBytesHandPub(hand []int8, pub []int8) ([]int8, []int8)
- func GetWinName(id int) string
- func GetWinNameId(n string) int
- func GetWinProbability(str string) float32
- func GetWinProbabilityByBytes(bytes []int8) float32
- func GetWinProbabilityByKey(key int64) float32
- func GetWinType(str string) string
- func GetWinTypeByBytes(bytes []int8) int
- func GetWinTypeId(str string) int
- func IsGui(i int8) bool
- func KeyToBytes(k int64) []int8
- func KeyToStr(key int64) string
- func Load()
- func LoadColor(file string) error
- func LoadLocal()
- func LoadNormal(file string) error
- func LoadNormalColor(local bool) error
- func LoadProbility(local bool) error
- func RemoveColor(k int64) int64
- func StrToByte(str string) int8
- func StrToByteValue(str string) int8
- func StrToBytes(str string) []int8
- type KeyData
- type Poke
- type ProbilityData
Constants ¶
View Source
const ( PokeColor_FANG = 0 PokeColor_MEI = 1 PokeColor_HONG = 2 PokeColor_HEI = 3 PokeColor_GUI = 5 )
View Source
const ( PokeValue_2 = 2 PokeValue_3 = 3 PokeValue_4 = 4 PokeValue_5 = 5 PokeValue_6 = 6 PokeValue_7 = 7 PokeValue_8 = 8 PokeValue_9 = 9 PokeValue_10 = 10 PokeValue_J = 11 PokeValue_Q = 12 PokeValue_K = 13 PokeValue_A = 14 PokeValue_GUI = 8 )
View Source
const ( TEXAS_CARD_TYPE_GAOPAI = 1 //高牌 TEXAS_CARD_TYPE_DUIZI = 2 //对子 TEXAS_CARD_TYPE_LIANGDUI = 3 //两对 TEXAS_CARD_TYPE_SANTIAO = 4 //三条 TEXAS_CARD_TYPE_SHUNZI = 5 //顺子 TEXAS_CARD_TYPE_TONGHUA = 6 //同花 TEXAS_CARD_TYPE_HULU = 7 //葫芦 TEXAS_CARD_TYPE_SITIAO = 8 //四条 TEXAS_CARD_TYPE_TONGHUASHUN = 9 //同花顺 TEXAS_CARD_TYPE_KINGTONGHUASHUN = 10 //皇家同花顺 )
View Source
const ( GUINUM = 2 GENNUM = 52 + GUINUM )
Variables ¶
View Source
var GUI = Poke{PokeColor_GUI, PokeValue_GUI}
Functions ¶
func BytesToStr ¶
func ChangeColor ¶
func CompareByBytes ¶
func CompareByKey ¶
func GenCardBind ¶
func GetExAllTypeProbability ¶
func GetExHandProbability ¶
func GetHandProbability ¶
func GetMaxBytes ¶
func GetWinName ¶
func GetWinNameId ¶
func GetWinProbability ¶
func GetWinProbabilityByKey ¶
func GetWinType ¶
func GetWinTypeByBytes ¶
func GetWinTypeId ¶
func KeyToBytes ¶
func LoadNormal ¶
func LoadNormalColor ¶
func LoadProbility ¶
func RemoveColor ¶
func StrToByteValue ¶
func StrToBytes ¶
Types ¶
type KeyData ¶
type KeyData struct {
// contains filtered or unexported fields
}
func GetKeyData ¶
func GetKeyDataByKey ¶
type ProbilityData ¶
type ProbilityData struct {
// contains filtered or unexported fields
}
func GetHandProbabilityData ¶
func GetHandProbabilityData(k int64) *ProbilityData
Click to show internal directories.
Click to hide internal directories.