Nice name. =) Going to do one black one white like YinYang? --David Alves
If I continue with the idea, then yes, definately =). I realised it was a bit tough to fit a pattern matcher that stored data on multiple enemies, and has scan interpolation, and still fit a GF gun with scan interpolation, so I've made something that is a cross between the two: a segmented play-it-forward gun, that reconstructs the last 50 movement patterns in that set of 'bins'. I've also got an optimal radar scanning (inspired by a comment by Voidious) that scans in the direction of the enemy who was scanned the longest time ago - so it should be pretty effective for melee as well. It's got my-location sharing, which will be used for movement. Right now I'm at 1200 bytes, and all I have to add is the movement. I'm pretty sure I'll go for MinimumRiskMovement - although a special case for 1v1 at the end would be nice if I can fit it =). -- Skilgannon
Enumeration allE = enemies.elements();
double otherAngle = absBearing;
int oldestScan = Integer.MAX_VALUE;
do{
EnemyInfo tmp = (EnemyInfo)allE.nextElement();
if(tmp.lastScanTime < oldestScan && tmp != eInfo && tmp.isAlive && !(eInfo == currentTarget && getGunHeat() < 1)){
otherAngle = absoluteAngle(myLocation,tmp.location);
oldestScan = tmp.lastScanTime;
}
}while(allE.hasMoreElements());
setTurnRadarRight(Utils.normalRelativeAngle(otherAngle - getRadarHeadingRadians())*2);
-- Skilgannon
I'm going away until next week wednesday....so I don't think I'll have an entry this week. Good luck, guys! -- Skilgannon