Documentation ¶
Index ¶
- Constants
- Variables
- func HasInfer(botCode macondo.BotRequest_BotCode) bool
- type BotConfig
- type BotTurnPlayer
- func (p *BotTurnPlayer) BestPlay(ctx context.Context) (*move.Move, error)
- func (p *BotTurnPlayer) GenerateMoves(numPlays int) []*move.Move
- func (p *BotTurnPlayer) GetBotType() pb.BotRequest_BotCode
- func (p *BotTurnPlayer) SetBotType(b pb.BotRequest_BotCode)
- func (p *BotTurnPlayer) SetEquityCalculators(calcs []equity.EquityCalculator)
- func (p *BotTurnPlayer) SetMinSimPlies(t int)
- func (p *BotTurnPlayer) SetSimThreads(t int)
Constants ¶
View Source
const InferencesSimLimit = 400
Variables ¶
View Source
var BotConfigs = map[pb.BotRequest_BotCode]struct { baseFindability float64 longWordFindability float64 parallelFindability float64 isCel bool }{ pb.BotRequest_LEVEL1_CEL_BOT: {/* contains filtered or unexported fields */}, pb.BotRequest_LEVEL2_CEL_BOT: {/* contains filtered or unexported fields */}, pb.BotRequest_LEVEL3_CEL_BOT: {/* contains filtered or unexported fields */}, pb.BotRequest_LEVEL4_CEL_BOT: {/* contains filtered or unexported fields */}, pb.BotRequest_LEVEL1_PROBABILISTIC: {/* contains filtered or unexported fields */}, pb.BotRequest_LEVEL2_PROBABILISTIC: {/* contains filtered or unexported fields */}, pb.BotRequest_LEVEL3_PROBABILISTIC: {/* contains filtered or unexported fields */}, pb.BotRequest_LEVEL4_PROBABILISTIC: {/* contains filtered or unexported fields */}, pb.BotRequest_LEVEL5_PROBABILISTIC: {/* contains filtered or unexported fields */}, }
Note: because of the nature of this algorithm, the lower these numbers, the more time the bot will take to find its move.
Functions ¶
func HasInfer ¶
func HasInfer(botCode macondo.BotRequest_BotCode) bool
Types ¶
type BotTurnPlayer ¶
type BotTurnPlayer struct { aiturnplayer.AIStaticTurnPlayer // contains filtered or unexported fields }
func NewBotTurnPlayer ¶
func NewBotTurnPlayer(conf *BotConfig, opts *turnplayer.GameOptions, players []*pb.PlayerInfo, botType pb.BotRequest_BotCode) (*BotTurnPlayer, error)
func NewBotTurnPlayerFromGame ¶
func NewBotTurnPlayerFromGame(g *game.Game, conf *BotConfig, botType pb.BotRequest_BotCode) (*BotTurnPlayer, error)
func (*BotTurnPlayer) GenerateMoves ¶
func (p *BotTurnPlayer) GenerateMoves(numPlays int) []*move.Move
func (*BotTurnPlayer) GetBotType ¶
func (p *BotTurnPlayer) GetBotType() pb.BotRequest_BotCode
func (*BotTurnPlayer) SetBotType ¶
func (p *BotTurnPlayer) SetBotType(b pb.BotRequest_BotCode)
func (*BotTurnPlayer) SetEquityCalculators ¶
func (p *BotTurnPlayer) SetEquityCalculators(calcs []equity.EquityCalculator)
func (*BotTurnPlayer) SetMinSimPlies ¶ added in v0.6.0
func (p *BotTurnPlayer) SetMinSimPlies(t int)
func (*BotTurnPlayer) SetSimThreads ¶
func (p *BotTurnPlayer) SetSimThreads(t int)
Click to show internal directories.
Click to hide internal directories.