Difference between revisions of "Wave Surfing/Melee"

From Robowiki
Jump to navigation Jump to search
(Reformat)
 
Line 1: Line 1:
 
{{stub}}
 
{{stub}}
  
:Melee surfing is simply surfing waves fired by multiple robots.
+
Melee surfing is surfing waves fired by multiple enemies. It is not a specific algorithm, but rather a class of techniques.
:Because melee surfing is not an algorithm it can be done in more than one ways.
 
  
;Melee True Surfing
+
== True Melee Surfing ==
** Find the closest wave
+
* Find the closest [[wave]].
** Choose X angles to move.
+
* Choose ''n'' angles to move.
** For every angle:
+
* For every angle:
:1. Simulate your bot moving to that angle.  
+
** [[Precise Prediction|Simulate your bot]] moving at that angle.  
:2. Find the wave hit location.
+
** Find the wave hit location.
:3. Check danger.
+
** Check the danger.
** Choose the best angle to move
+
* Choose the best angle to move.
**Move!
+
* Move!
  
;Melee GoTo Surfing
+
== GoTo Melee Surfing ==
** Find the closest wave
+
* Find the closest wave.
** Choose X points that can be reached until the wave hits.
+
* Choose ''n'' points that can be reached by the time the wave hits.
** Choose the safest point according to your danger function.
+
* Choose the safest point according to your danger function.
** Go to there!
+
* [[GoTo]] that location!

Latest revision as of 23:18, 7 September 2017

This article is a stub. You can help RoboWiki by expanding it.

Melee surfing is surfing waves fired by multiple enemies. It is not a specific algorithm, but rather a class of techniques.

True Melee Surfing

  • Find the closest wave.
  • Choose n angles to move.
  • For every angle:
    • Simulate your bot moving at that angle.
    • Find the wave hit location.
    • Check the danger.
  • Choose the best angle to move.
  • Move!

GoTo Melee Surfing

  • Find the closest wave.
  • Choose n points that can be reached by the time the wave hits.
  • Choose the safest point according to your danger function.
  • GoTo that location!