Area Targeting

From Robowiki
Revision as of 07:30, 21 November 2007 by Voidious (talk | contribs) (new Area Targeting page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A method of targeting that aims at an area of the battlefield instead of at any particular bot. This method only works in battles that involve more than two bots, such as melee or teams.

Pseudocode

  • Divide the battlefield into sections.
  • Consider the bots in each section, moving into each section, and/or moving out of each section.
  • Determine the section with the most bots in it.
  • Fire in that direction.

See also