Difference between revisions of "PC targeting"

From Robowiki
Jump to navigation Jump to search
Line 1: Line 1:
 
Pattern Continuer or Common Patterns
 
Pattern Continuer or Common Patterns
  
PC or CP is a targeting style that you save the last ticks(You will decide it yourself). Then you will find the most common patterns.
+
PC or CP is a targeting style that you save the last [[n]] ticks(You will decide it yourself). Then you will find the most common patterns.
  
 
As an example:
 
As an example:
 
velocityList
 
velocityList
{8, 8, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, -2, -4, -2, 0, 0, 0, 0, 0, 2, 4, 6, 8}
+
{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.
 
The most common pattern here is 0, 0, 0, 0, 0.
 
So you are going to fire directly at enemyPosition.
 
So you are going to fire directly at enemyPosition.
  
I tried it in some of my robots that hasn't been released.
+
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 [[n]] 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.
 
 
The problem is without a back-up statistical gun enemy doesn't continue it's patterns and the gun doesn't work because it's a fast adapting gun and enemy bot has a flattener.
 
 
 
 
 
I am working on it and I will put it to WhiteFang if it works well.
 
 
 
 
 
  
 
Advantages:
 
Advantages:
 
+
The gun is learning.
It adapts very fast and get the enemy movement.
+
Easy to make.
  
 
Disadvantages:
 
Disadvantages:
 
+
[[Flattener]]s
Flatteners kills the gun.
+
Determining [[n]]'s value.
It forgets the old movements.
+
Determining the decay rate.
It can't hit crazy patterned bots like crazy very well.
 
It's made by me.(I do programming for 9 months):)
 

Revision as of 19:44, 6 January 2017

Pattern Continuer or Common Patterns

PC or CP is a targeting style that you save the last n 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 n 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 n's value. Determining the decay rate.