BerryBots forums
http://berrybots.com/forum/

My first learning gun
http://berrybots.com/forum/viewtopic.php?f=1&t=43
Page 1 of 1

Author:  Voidious [ Tue Aug 13, 2013 10:10 pm ]
Post subject:  My first learning gun

Over the weekend, I wrote my first real learning gun for BerryBots. For now it's just "Test Gun" 1.1. (It will get a real bot name/wiki page soonish.)

It uses k-nearest neighbors to search for previous situations, displacement vectors to project firing angles from those situations, then kernel density on the firing angles to choose the densest point in the curve. It doesn't account for walls yet - e.g., knowing a bot's still alive when it's behind a wall, interpolating missed scans, hiding/chasing around walls. Also no real target selection and no movement. All fairly standard Robocode-style algorithms for now. Displacement vectors are nice because they scale to bullet time, like GuessFactors, but don't require you to calculate a max escape angle, which would be tricky in BerryBots.

I've got it to 99.7% wins on Laser Gallery, with a score better than 2x BasicBattler's random linear targeting. The very first ship gives it trouble sometimes if it spawns at the right distance/angle, much like for BasicBattler. Next steps are basic wall stuff, target selection, testing it on BasicBattler's movement, and porting Rednaxela's kd-tree to Lua.

Author:  Voidious [ Tue Sep 03, 2013 6:29 pm ]
Post subject:  Re: My first learning gun

Here's a quick peek at the latest version on Laser Gallery: https://dl.dropboxusercontent.com/u/721 ... llery.html

PS - Replay support is coming along nicely. :-)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/