Difference between revisions of "PC targeting"

From Robowiki
Jump to navigation Jump to search
(Help me with this.)
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
I'm not sure that I'm the first one to create it but I've found it by myself.
+
Pattern Continuer or Common Patterns
PC is pattern continuer. it continues the patterns DOESN'T MATCH THEM.
+
 
It saves the last 30 ticks(you can decide it yourself) and continues them like:
+
PC or CP is a targeting style that you save the last [[f]] ticks(You will decide it yourself). Then you will find the most common patterns.
1. HeadingChange = 5, 2. HeadingChange = 10, 3. HeadingChange = 15 so
+
 
4. HeadingChange = 20.
+
As an example:
I'm not sure that it will work because my I don't have my computer with me but
+
velocityList
I tried my algorithm on paper and it worked well so I will use it. The problem is
+
{8, 8, 8, 6, 4, 2, 0, 0, 0, 0, 0, -2, -4, -2, 0, 0, 0, 0, 0, 1, 2, 3, 4}
having problems with complicated patterns like 1,2,10,9,3,4,8,7,5,6. Can someone
+
 
help me with the patterns.
+
The most common pattern here is 0, 0, 0, 0, 0.
 +
So you are going to fire directly at enemyPosition.
 +
 
 +
Now let's improve it. Using velocity or heading change is not a good idea so we will make these patterns [[PIF]] simulations or guess factors([[GF]]) and get the kernel density. But still there is a problem. If a bot change it's movement it won't adapt very quickly and if the value of [[f]] is low it won't learn. With some segmentation it will return to a [[real]] learning gun. Still we can add data decay and some other improvements you have in your mind.
 +
 
 +
Advantages:
 +
The gun is learning.
 +
Easy to make.
 +
 
 +
Disadvantages:
 +
[[Flattener]]s
 +
Determining [[f]]'s value.
 +
Determining the decay rate.
 +
 
 +
Note: I originally used n instead of f and found out this robot: [[N]]

Latest revision as of 20:45, 6 January 2017

Pattern Continuer or Common Patterns

PC or CP is a targeting style that you save the last f ticks(You will decide it yourself). Then you will find the most common patterns.

As an example: velocityList {8, 8, 8, 6, 4, 2, 0, 0, 0, 0, 0, -2, -4, -2, 0, 0, 0, 0, 0, 1, 2, 3, 4}

The most common pattern here is 0, 0, 0, 0, 0. So you are going to fire directly at enemyPosition.

Now let's improve it. Using velocity or heading change is not a good idea so we will make these patterns PIF simulations or guess factors(GF) and get the kernel density. But still there is a problem. If a bot change it's movement it won't adapt very quickly and if the value of f is low it won't learn. With some segmentation it will return to a real learning gun. Still we can add data decay and some other improvements you have in your mind.

Advantages: The gun is learning. Easy to make.

Disadvantages: Flatteners Determining f's value. Determining the decay rate.

Note: I originally used n instead of f and found out this robot: N