From: "Simon Kröger" Date: 2005-11-25T05:43:53+09:00 Subject: Re: RRobots - ducks, armed and dangerous Harold Hausman wrote: > You get a gold star on the chart for the day! > > Today we can all be thankful for rrobots.rb. > Here's the listing of my first bot, affectionately titled BotOne. He > lays a savage beat down on the aptly named NervousBot, but he is by no > means invincible. to cool. > #Begin listing > [...] > #End listing > > This bot prefers long matches, as he fires low power shots. This, on > my machine at least exposes some performance problems associated with > shooting a lot. 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 will dive into that (i was able to finish the match, but it slows down considerably) maybe i have to 'reuse' old bullets. > Barring that though, this is brilliant! > > One thousand thanks, > -Harold I'm realy glad to see someone enjoys this little game. cheers Simon