I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything
I think it means:Code: [Select]Move # flame on depending on enemy's range enemy, flamerange = self.GetNearestEnemy() if enemy is not None and flamerange < self.flame_range: self.Input("Flame", 0, 130) elif self.GetInputStatus("Flame", 0) != 0: self.Input("Flame", 0, 0) targets = [x for x in self.sensors.itervalues() if x.contacts > 0 \ and not plus.isDefeated(x.robot)]^this from def Tick(self)to def Activate(self, active)Someone that is more experienced, correct me if I'm wrong.
Move # flame on depending on enemy's range enemy, flamerange = self.GetNearestEnemy() if enemy is not None and flamerange < self.flame_range: self.Input("Flame", 0, 130) elif self.GetInputStatus("Flame", 0) != 0: self.Input("Flame", 0, 0) targets = [x for x in self.sensors.itervalues() if x.contacts > 0 \ and not plus.isDefeated(x.robot)]^this from def Tick(self)to def Activate(self, active)
def Activate(self, active): # Activate flame control at the start of the match, leaving it alone in def Tick self.Input("Flame", 0, 100) if active: if AI.SuperAI.debugging: self.debug = Gooey.Plain("watch", 0, 75, 100, 75) tbox = self.debug.addText("line0", 0, 0, 100, 15) tbox.setText("Throttle") tbox = self.debug.addText("line1", 0, 15, 100, 15) tbox.setText("Turning") tbox = self.debug.addText("line2", 0, 30, 100, 15) tbox.setText("") tbox = self.debug.addText("line3", 0, 45, 100, 15) tbox.setText("") self.RegisterSmartZone(self.zone, 1) return AI.SuperAI.Activate(self, active)
Ideas for bots plz.
Have a guess at what it is like.