Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelAiRoutine ¶
func CancelAiRoutine()
func PlayerTypeText ¶
func PlayerTypeText(playerType PlayerType) string
func SetOnAiProgress ¶
func SetOnAiProgress(f func())
Types ¶
type AppConfigStruct ¶
type AppConfigStruct struct { AppTitle string `yaml:"app_title" json:"app_title"` SoldierText string `yaml:"soldier_text" json:"soldier_text,omitempty"` CannonText string `yaml:"cannon_text" json:"cannon_text,omitempty"` SoldierPlayType PlayerType `yaml:"soldier_play_type" json:"soldier_play_type"` CannonPlayType PlayerType `yaml:"cannon_play_type" json:"cannon_play_type"` AiDepth int `yaml:"ai_depth" json:"ai_depth,omitempty"` PlayerTypeHumanText string `yaml:"player_type_human_text" json:"player_type_human_text"` PlayerTypeAIText string `yaml:"player_type_ai_text" json:"player_type_ai_text"` PlayerTypeNetText string `yaml:"player_type_net_text" json:"player_type_net_text"` }
var AppConfig AppConfigStruct
type Chess ¶
type ChessType ¶
type ChessType int
func (ChessType) PlayerType ¶
func (chessType ChessType) PlayerType() PlayerType
type Move ¶
type PlayerType ¶
type PlayerType int
const ( PlayerTypeHuman PlayerType = iota PlayerTypeAI PlayerTypeNet )
Click to show internal directories.
Click to hide internal directories.