Discussion:
Newbie Pattern matching Question
1***@nhusd.k12.ca.us
2014-11-10 04:39:13 UTC
Permalink
Hi, Sorry if this is a really newbie question.

In my pattern matching gun I'm working on right now i keep track of the enemies' heading change as well as velocity. When churning through my history, do i try to find the best match for heading change, velocity, or both? If both, how would one do so?

Thanks in advance! Any tips will be highly appreciated!
--
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Johannes Slotta
2014-11-10 16:13:52 UTC
Permalink
Hi,
not having done such thing in robocode, computing the distances of
vectors, and the tuple (heading change, velocity) can be seen as such,
can be done by computing vT x A x v, with vT being the difference
vector in horizontal, v in vertical, and A some symmetric matrix. In
the simplest form, A is a diagonal matrix, this means the expression
will evaluate to w1*v1^2+w2*v2^2, with w1 and w2 being some weights
and v1 and v2 the elements of the vector, so in your case heading
change and velocity. If you compute those values you might find the
vector that is next to the one you are comparing to, but you may need
some runs to find good values for w1/w2. Fails if there is no good
matrix for all vectors, but usually a first try, especially in the
simplified version.

Hope that helps,
Johannes
Post by 1***@nhusd.k12.ca.us
Hi, Sorry if this is a really newbie question.
In my pattern matching gun I'm working on right now i keep track of the enemies' heading change as well as velocity. When churning through my history, do i try to find the best match for heading change, velocity, or both? If both, how would one do so?
Thanks in advance! Any tips will be highly appreciated!
--
You received this message because you are subscribed to the Google Groups "robocode" group.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
1***@nhusd.k12.ca.us
2014-11-14 04:12:59 UTC
Permalink
Okay that makes sense. Thanks!
--
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...