Пример #1
0
func makeAgent(id uint32, xVelocity, yVelocity int) agent.Agent {
	a := configurable.New(id)
	a.XVelocity = xVelocity
	a.YVelocity = yVelocity
	a.LogMove = true
	return a
}
Пример #2
0
func main() {
	logflow.StdoutSink(".*")
	a := configurable.New(0)
	a.XVelocity = 1
	agent.RunStandalone(os.Args[1], a)
}