# RollingAverageDodging

Robo Home | Changes | Preferences | AllPages

#### What it is

A way of keeping your dodge behaviour so that when an enemy homes in on your current average movement when dodging a bullet, you change it so the old average would yield a miss if the enemy bot uses it. This is an effective way of fooling those bots with long learntime.

#### How it is done

Simply have your reactive dodge move your bot a fixed distance to the left for example. Always move the same distance for each dodge, until the enemy starts scoring hits which tells you he has homed in on your current dodging behaviour. Then simply souble the distance move per dodge and the enemy bullets will hit behind you. Keep dodging this way until they hit you again, etc etc.

The upper limit of distance will be when the enemy fires at you and you havent slowed down yet from the prevoius dodge, meaning normal linear (or circular) aiming will hit you. Then either do the reverse (start dodging less per dodge) or simply start from the beginning distance (which should be short enough to make the enemy miss still.

This will fool statistical bots most of the time. Bots using SegmentedData will also be fooled by this algorithm simply because every dodge looks the same. When seeing your acceleration it will be no different from before and a bullet fired then will still use the old average. The same is true for when breaking to a stop. By ALMOST doing the same dodge over and over (but with a slight modification that will make your average different) the SegmentedData algorithms wont know that you actually have changed dodge behaviour.

Eventually both algorithms will calculate a new average because of your actual movement and home in on you. Then just switch behaviour again and keep them fooled.

The hard part of this algorithm is:

• Determining when to switch movement style. Maybe your enemies last hits were just "lucky" ones?
• Finding a good movement that is not so easily interuppted by the walls.

#### drawbacks

Depending on your choice for base movement the movement can be a sitting duck for other targeting algorithms. A good and fast patternmatcher could nail you down in seconds. Even normal linear and circular aiming methods might prove themself deadly.

-- Jimpa