Documentation ¶
Index ¶
- type HexMap
- func (h *HexMap) DetectEnemyBot(botId int, pos client.Position)
- func (h *HexMap) GetBotRadaringPoint(botId int) client.Position
- func (h *HexMap) GetCannonPosition(pos client.Position) client.Position
- func (h *HexMap) GetStartPoints(botCount int) (points []int)
- func (h *HexMap) GetValidCannons(botId int) []client.Position
- func (h *HexMap) GetValidMoves(botId int) []client.Position
- func (h *HexMap) GetValidRadars(botId int) []client.Position
- func (h *HexMap) HitBot(botId, damage int)
- func (h *HexMap) MoveMyBot(botId int, pos client.Position)
- func (h *HexMap) Radar(pos *client.Position)
- func (h *HexMap) Reduce()
- func (h *HexMap) Run(botId int) client.Position
- func (h *HexMap) RunTowardsPosition(botId int, target client.Position) client.Position
- func (h *HexMap) Send()
- func (h *HexMap) SetMyBot(bot *client.Bot, radarIdx int)
- func (h *HexMap) ShootAround(p client.Position, bots int, filter *client.Position) []client.Position
- func (h *HexMap) Stay(botId int)
- func (h *HexMap) WillDamageGivenBot(x, y int, p *client.Position) bool
- func (h *HexMap) WillDamageOwnBot(x, y int) bool
- type Info
- type InfoPoint
- type Point
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HexMap ¶
type HexMap struct {
// contains filtered or unexported fields
}
func (*HexMap) GetBotRadaringPoint ¶
func (*HexMap) GetCannonPosition ¶
func (*HexMap) GetStartPoints ¶
func (*HexMap) GetValidCannons ¶
Get valid positios where bot can use cannon
func (*HexMap) GetValidMoves ¶
Get valid positios where bot can move
func (*HexMap) GetValidRadars ¶
Get valid positios where bot can use rader
func (*HexMap) Reduce ¶
func (h *HexMap) Reduce()
This will be called first thing on each round We should use flood fill, etc. to keep map up to date
func (*HexMap) Run ¶
Get run away move 1. Get all valid moves for bot 2. Filter bad moves out 3. Get random move from best moves 4. If no best move get one from valid ones
func (*HexMap) RunTowardsPosition ¶
Start running towards desirect position
func (*HexMap) ShootAround ¶
func (h *HexMap) ShootAround(p client.Position, bots int, filter *client.Position) []client.Position
use this only for 1 or 2 bots
func (*HexMap) WillDamageGivenBot ¶
func (*HexMap) WillDamageOwnBot ¶
Click to show internal directories.
Click to hide internal directories.