Difference between revisions of "Minimum Risk Movement"

From Robowiki
Jump to navigation Jump to search
Line 2: Line 2:
 
{{Youtube|7e9qyOmo6nc}}
 
{{Youtube|7e9qyOmo6nc}}
  
'''Minimum Risk Movement''' is an extremely effective type of [[Melee]] movement that is not unlike [[Anti-Gravity Movement]] in implementation. The idea is to pick a series of points that you could go to next, and rate each one with a 'risk factor', then move to the lowest-risk location.  
+
'''Minimum Risk Movement''' is an extremely effective type of [[Melee]] movement that picks a series of points to consider going to next, then rates each one with a "risk factor". It then moves the bot to the point it determines has the lowest risk factor.then move to the lowest-risk location. On the surface, it looks like just an implementation of [[AntiGravityMovement]], and some consider the difference to be just interpretation, but the way it is implemented is different enough that they are considered distinctly different. The only real similarity in the two is that they both attempt to consider all the fundamentals of [[melee movement]].  Minimum Risk is much more versatile than [[AntiGravityMovement]] and less likely to converge at some "happy" local minimum. 
  
==== Bots that use it ====
+
== Implementation ==
 +
There are two basic parts to [[MinimumRiskMovement]]:
 +
:* A Risk Function - Determines how risky it is to go to a point
 +
:* A Point-generating function - generates candidates to try in the risk function
 +
After those two functions are completed, all that remains is to just go to the candidate point with the lowest risk.  In both functions, randomness can often be helpful, although it is most often used in point generation.  One possible tweak to the traditional implementation is deciding to look for a point to go to constantly rather than just choosing one point at a time.  While both strategies have merits, you might get into a rut if you keep changing your mind on points; but, in choosing points constantly, you enable yourself to react more quickly to changes in the situation on the battlefield.
 +
 
 +
== Bots that use it ==
 
There are many bots in [[melee]] that use this system, although their authors don't always describe it as Minimum Risk. They include:
 
There are many bots in [[melee]] that use this system, although their authors don't always describe it as Minimum Risk. They include:
 
* [[FloodHT]]
 
* [[FloodHT]]
Line 17: Line 23:
 
* [[Ice]]
 
* [[Ice]]
  
==== Calculating the Risk Factor for a point/movement ====
+
Some clear and easy to understand implementations include [[Coriantumr]], [[Shiz]], and [[HawkOnFire]].
[[FloodHT]] uses a system similar to finding the magnitude of a force in [[Anti-Gravity Movement]]. For each enemy it uses a base risk of energy/distance<sup>2</sup>. It then considers whether it will be closest to them, because if it is, it is much more likely to but targeted. It also avoids bots that have recently shot it, and tries not to go to a point if it is going to run into an enemy on the way. In addition to the considerations per enemy, it repels its current location and the center of the battlefield and avoids traveling long distances (doing so can be very dangerous in melee). In the future, it might consider its lateral angle to its enemy. It is much more dangerous to move toward or away from an enemy than perpendicular to them. The dev version of [[FloodHT]] already does this at least some of the time.
+
 
 +
== Calculating the Risk Factor for a point/movement ==
 +
Most bots evaluate points with a system similar to finding a force's magnitude in [[AntiGravity Movement]]. Although not all bots implemented it the same way, most base the risk of a point on enemy energy and distance. Many also consider whether they will be the closest bot to an enemy to try to avoid being targeted. Often, bots repel the center of the battlefield. In addition to these common practices, some bots: try not to travel a long distance in one movement; try to avoid staying in the same area for a long period of time; and/or consider their lateral angle to their enemies, as it is much more dangerous to travel directly toward or away from an enemy than it is to move perpendicular to them.
  
==== Picking points to try ====
+
== Picking points to try ==
  
 
It's important to pick a good range of practical places to go to for this to work well.  Applying a force to the walls is unnecessary if you always just pick points within the battlefield.  The melee robot [[HawkOnFire]] picks several points around him in regular angular offsets at random distances.  The next version of [[FloodHT]] will do this at least some of the time.  [[Tron]] obviously picks 4 points, at pretty much uniform distance, up, down, left and right.  He also avoids [[Head-On Targeting|head-on]] aim like the plague.  [[FloodHT]] 0.8 uses a divide-and-conquer sort of system.  He divides the battlefield up into 16 rectangles, and rates each one based on the risk of its center point.  If he's far away from that point, he goes to it, otherwise he splits that rectangle up into 16 more rectanges and rates them and goes to that point (or continues to subdivide until it just doesn't make a difference anymore).  The dev version does this at the beginning of the battle to get situated and then starts picking points around him at a distance.
 
It's important to pick a good range of practical places to go to for this to work well.  Applying a force to the walls is unnecessary if you always just pick points within the battlefield.  The melee robot [[HawkOnFire]] picks several points around him in regular angular offsets at random distances.  The next version of [[FloodHT]] will do this at least some of the time.  [[Tron]] obviously picks 4 points, at pretty much uniform distance, up, down, left and right.  He also avoids [[Head-On Targeting|head-on]] aim like the plague.  [[FloodHT]] 0.8 uses a divide-and-conquer sort of system.  He divides the battlefield up into 16 rectangles, and rates each one based on the risk of its center point.  If he's far away from that point, he goes to it, otherwise he splits that rectangle up into 16 more rectanges and rates them and goes to that point (or continues to subdivide until it just doesn't make a difference anymore).  The dev version does this at the beginning of the battle to get situated and then starts picking points around him at a distance.

Revision as of 06:35, 21 October 2010

This article may require cleanup to meet RoboWiki's quality standards.
Please improve this article if you can.
Youtube
Youtube has a video of Minimum Risk Movement in action: click here to watch

Minimum Risk Movement is an extremely effective type of Melee movement that picks a series of points to consider going to next, then rates each one with a "risk factor". It then moves the bot to the point it determines has the lowest risk factor.then move to the lowest-risk location. On the surface, it looks like just an implementation of AntiGravityMovement, and some consider the difference to be just interpretation, but the way it is implemented is different enough that they are considered distinctly different. The only real similarity in the two is that they both attempt to consider all the fundamentals of melee movement. Minimum Risk is much more versatile than AntiGravityMovement and less likely to converge at some "happy" local minimum.

Implementation

There are two basic parts to MinimumRiskMovement:

  • A Risk Function - Determines how risky it is to go to a point
  • A Point-generating function - generates candidates to try in the risk function

After those two functions are completed, all that remains is to just go to the candidate point with the lowest risk. In both functions, randomness can often be helpful, although it is most often used in point generation. One possible tweak to the traditional implementation is deciding to look for a point to go to constantly rather than just choosing one point at a time. While both strategies have merits, you might get into a rut if you keep changing your mind on points; but, in choosing points constantly, you enable yourself to react more quickly to changes in the situation on the battlefield.

Bots that use it

There are many bots in melee that use this system, although their authors don't always describe it as Minimum Risk. They include:

Some clear and easy to understand implementations include Coriantumr, Shiz, and HawkOnFire.

Calculating the Risk Factor for a point/movement

Most bots evaluate points with a system similar to finding a force's magnitude in AntiGravity Movement. Although not all bots implemented it the same way, most base the risk of a point on enemy energy and distance. Many also consider whether they will be the closest bot to an enemy to try to avoid being targeted. Often, bots repel the center of the battlefield. In addition to these common practices, some bots: try not to travel a long distance in one movement; try to avoid staying in the same area for a long period of time; and/or consider their lateral angle to their enemies, as it is much more dangerous to travel directly toward or away from an enemy than it is to move perpendicular to them.

Picking points to try

It's important to pick a good range of practical places to go to for this to work well. Applying a force to the walls is unnecessary if you always just pick points within the battlefield. The melee robot HawkOnFire picks several points around him in regular angular offsets at random distances. The next version of FloodHT will do this at least some of the time. Tron obviously picks 4 points, at pretty much uniform distance, up, down, left and right. He also avoids head-on aim like the plague. FloodHT 0.8 uses a divide-and-conquer sort of system. He divides the battlefield up into 16 rectangles, and rates each one based on the risk of its center point. If he's far away from that point, he goes to it, otherwise he splits that rectangle up into 16 more rectanges and rates them and goes to that point (or continues to subdivide until it just doesn't make a difference anymore). The dev version does this at the beginning of the battle to get situated and then starts picking points around him at a distance.

See Also