Version: v0.0.0-...-c7d817c Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2018 License: MIT Imports: 10 Imported by: 0




This section is empty.


This section is empty.


func Act

func Act(myPersonality model.Personality, goal model.Goal, actions []model.Action) (abortPersonality bool, abortGoal bool)

func GetAllThings

func GetAllThings() chan model.Thing

GetAllThings gets all things in database

func GetMeAndTarget

func GetMeAndTarget(meTag uint, targetTag uint) (me model.Thing, target model.Thing)

func GetMyTag

func GetMyTag() uint

GetMyTag finds the users tag in the database

func HandleIncoming

func HandleIncoming(b []byte)

HandleIncoming handles incoming messages

func HandleMyTagMessage

func HandleMyTagMessage(b []byte)

func PersistThingsMessage

func PersistThingsMessage(b []byte)

PersistThingsMessage puts a the things found in a []byte into the database, signalling when done

func PickTarget

func PickTarget() (model.Thing, bool)

PickTarget looks for another tank to shoot

func SendJoinGameMessage

func SendJoinGameMessage(game model.Game)

SendJoinGameMessage handles incoming messages

func SendMessageJoinServer

func SendMessageJoinServer()

SendMessageJoinServer tells the server about the bot


This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL