Just downloaded it. It's killer... Absolutely rockin'

No excuses now, lets see some bots (:

here's a quasi interesting bot, doesn't display the modicum of
intelligence that the BotOne does, but still wins a fair ammount.
Behold, CheeseBot:

#Begin Listing

require 'robot'

class CheeseBot
	include Robot
	def tick events
		@stage = 1 if @stage.nil?
		@direction = -1 if @direction.nil?
		fire 1
		case @stage
			when 1
				accelerate @direction
				if( heading < 90 )
					turn 90 - heading
				elsif( heading > 90 )
					turn heading - 90
				else
					@stage = 2
				end
			when 2
				accelerate @direction
				if y > @battlefield.height - (size*2)
					@stage = 3
					@temp_time = time
				end
			when 3
				accelerate @direction
				if( (@temp_time + 9) >= time )
					turn 10
					turn_gun -10
				else
					@stage = 4
				end
			when 4
				accelerate @direction
				if( (time > @temp_time+30) && (x > (@battlefield.width - (size*2))
|| x < (size*2)) )
					@direction *= -1
					@temp_time = time
				end
		end
	end
end

#End Listing
#Beware the word wrap. heh

Thanks again and long live rrobots.rb,
-Harold

On 11/25/05, Simon Kr?ger <SimonKroeger / gmx.de> wrote:
>  > [...]
>  > Matching a couple of rapid firing bots brings the app
> > to it's knees after only a few thousand ticks. My first idea where
> > maybe that the bullets were not being cleaned up properly, but looking
> > at the source it looks like they are being remove from the hash and
> > canvas, so I don't know.
>
> I hope i got it. Would you download v0.1.2 and try it?
>
> cheers
>
> Simon
>
>