Danger function

Jump to navigation Jump to search
Revision as of 19 June 2013 at 07:16.
The highlighted comment was created in this revision.

Danger function

The hitScans list and distance/danger weighting accumulation in getDanger() is very interesting. It looks like this is to avoid the sparse data problem caused by heavy segmentation which is exacerbated in the case of surfing by very few data points.

And I right in assuming this implementation is to achieve a similar effect to the kd-tree you would use in a mega bot?

In any case this gives me an idea, which like most of my ideas will probably come to nothing, but you can now feel guilty for making me waste another couple of weeks on robocode ;-)

I can't think of an easy/small way of doing KNN with this style of implementation, so I guess my distance weighting algorithm had better be a good one.

    Nz.jdc (talk)08:27, 19 June 2013

    Unfortunately, this doesn't work in a gun because a gun has an order of magnitude more data and it ends up being too slow. Hence me only using it in movement, and the gun being PM. But go for it. I wanted to try this in Micro as a gun, but I could never get it to fit.

      Skilgannon (talk)09:16, 19 June 2013