I actually played with a mirror-like movement in FunkyChicken, which probably would have fit, too (with a pattern-matcher in a nano, even!) Wouldn't have been an exact mirror, but a reasonably good one. The smallest mirror-bot I know of is sgp.nano.FurryLeech, which is 245 bots, probably with random aim. A lot of top nanos have a hard time with it, while others beat it easily. It's pretty funny :-p (and hard to make a really good nano that beats NanoLauLectrik and FurryLeech). -- Kawigi |
I actually played with a mirror-like movement in FunkyChicken, which probably would have fit, too (with a pattern-matcher in a nano, even!) Wouldn't have been an exact mirror, but a reasonably good one. The smallest mirror-bot I know of is sgp.nano.FurryLeech, which is 245 bots, probably with random aim. A lot of top nanos have a hard time with it, while others beat it easily. It's pretty funny :-p (and hard to make a really good nano that beats NanoLauLectrik and FurryLeech). -- Kawigi If you're still interested in mimicking your opponent and pattern-matching them at the same time, you should check out a simple but reasonably accurate implementation I use - it's called FunkyLeech. The mirroring isn't by location like yours, it's by relative angle and speed. I think it's pretty clever :-) -- Kawigi |
It Mirrors it's Opponents movements. Like this:
dX= getBattleFieldWidth() -((mX=getX())+Math.sin(inf)*e.getDistance());
dY= getBattleFieldHeight() -((mY=getY())+Math.cos(inf)*e.getDistance());
setTurnRightRadians(nTA = Math.atan(Math.tan(tA = ((Math.atan2(dX - mX, dY - mY) - (inf = getHeadingRadians())) + (7.0 * Math.PI)) % (2.0 * Math.PI) - Math.PI)));
setAhead((tA == nTA ? 1.0 : -1.0) * Point2D.Double.distance(mX, mY, dX, dY));
I actually played with a mirror-like movement in FunkyChicken, which probably would have fit, too (with a pattern-matcher in a nano, even!) Wouldn't have been an exact mirror, but a reasonably good one. The smallest mirror-bot I know of is sgp.nano.FurryLeech, which is 245 bots, probably with random aim. A lot of top nanos have a hard time with it, while others beat it easily. It's pretty funny :-p (and hard to make a really good nano that beats NanoLauLectrik and FurryLeech). -- Kawigi
If you're still interested in mimicking your opponent and pattern-matching them at the same time, you should check out a simple but reasonably accurate implementation I use - it's called FunkyLeech. The mirroring isn't by location like yours, it's by relative angle and speed. I think it's pretty clever :-) -- Kawigi