Documentation ¶
Index ¶
- func MultiMMLimited(board *b.FastBoard, depth int, strat StrategyFn) (b.Move, float64)
- func MultiMinmax(ctx context.Context, cache *Cache, board *b.FastBoard, strategy StrategyFn, ...) (b.Move, float64, bool)
- func MultiMinmaxID(board *b.FastBoard, cache *Cache) b.Move
- func MultiMinmaxThreaded(board *b.FastBoard, cache *Cache) b.Move
- func StrategyGMO(board *b.FastBoard, maxId, minId b.SnakeId, depth int, gmo GMOConfig) float64
- func StrategyGMO2(board *b.FastBoard, maxId, minId b.SnakeId, depth int) float64
- func StrategyHungry(board *b.FastBoard, maxId, minId b.SnakeId, depth int) float64
- func StrategyV1(board *b.FastBoard, maxId, minId b.SnakeId, depth int) float64
- func StrategyV2(board *b.FastBoard, maxId, minId b.SnakeId, depth int) float64
- func StrategyV3(board *b.FastBoard, maxId, minId b.SnakeId, depth int) float64
- func StrategyV4(board *b.FastBoard, maxId, minId b.SnakeId, depth int) float64
- func StrategyV5(board *b.FastBoard, maxId, minId b.SnakeId, depth int) float64
- type Cache
- type CacheEntry
- type DepthIndex
- type GMOConfig
- type StrategyFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MultiMMLimited ¶
func MultiMinmax ¶
func StrategyGMO ¶
func StrategyGMO2 ¶
func StrategyHungry ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) SetCurTurn ¶
type CacheEntry ¶
type CacheEntry struct {
// contains filtered or unexported fields
}
type DepthIndex ¶
type StrategyFn ¶
func CreateGMOStrategy ¶
func CreateGMOStrategy(gmo GMOConfig) StrategyFn
Click to show internal directories.
Click to hide internal directories.