Difference between revisions of "@workgun"

From Robowiki
Jump to navigation Jump to search
Line 18: Line 18:
  
 
===How find PM match?===
 
===How find PM match?===
* Look for exactly same data in an Arraylist<String> (index is tick) who contains bins indexin this form: (index bin 1).(index bin 2).ecc..
+
* Look for exactly equal Pattern
 
if exactly match hasn't been found:
 
if exactly match hasn't been found:
* get all same data with same bin index
+
* Find distance of the Pattern value and multiply weigth, i call this "weigth distance"
* find the most similar results for every bin
+
<math>weigthDistance=(pattern1.value1^2 - pattern2.value1^2) * gun.weigth1</math>
* look how much enemy has moved from the most similar result until predicted hit
+
* Return Patterns with lowest weigthDistance
  
 
===How find similar result?===
 
===How find similar result?===

Revision as of 16:44, 23 March 2009

@work gun

I'm thinking about this new ibrid gun, it's work is quite simple: get and save data as PM gun, but can choose if use a PM or GF targeting algoritm.

How gun works?

  • get data
  • create a Pattern based on data
  • find similar pattern(s)
  • shot as PM, create a virual bullet containig the Pattern and his weigth
  • if bullet hit modify actual gun weigth with virtual bullet weigth

Which data save?

Pattern data stored:

  • enemy distance travelled
  • enemy bearing change
  • i've shot
  • enemy has shot - not actually
  • distance from me
  • enemy life

How find PM match?

  • Look for exactly equal Pattern

if exactly match hasn't been found:

  • Find distance of the Pattern value and multiply weigth, i call this "weigth distance"

<math>weigthDistance=(pattern1.value1^2 - pattern2.value1^2) * gun.weigth1</math>

  • Return Patterns with lowest weigthDistance

How find similar result?

  • sum the distance of data bins index and sum it
  • find the lowest sum
  • if there are many low sum do the same but using the distance between absolute value and not bins index

I hope you have understend^^ ==lestofante 13:11, 26 February 2009 (UTC)