User talk:Chase-san/NewTech/KakeruCode

From Robowiki
< User talk:Chase-san‎ | NewTech
Revision as of 10:52, 28 July 2011 by Chase-san (talk | contribs) (Not sure what it is I am doing wrong :()
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Well throwing myself on the whims of the wiki. Now I know most of you are too busy dealing with your own code and your own bugs to look at anyone elses. However I am sure there is another bug in here somewhere. If you need any additional source posted (such as the wave or Vector classes) just ask. — Chase-san 08:52, 28 July 2011 (UTC)

Only thing in addition to that is that I would like to ask how DC is worked into a movement, as my attempts thus far have proved less then successful.

What I am doing currently is:

  1. Record the current state of the robot at the given time (2 turns ago or current state for heat waves)
  2. Store those values normalized (0 to 1) in a class/array and that in the wave.
  3. When you are hit, take the state from the wave that hit and add the guessfactor to it.
  4. Store that state where you can get to it later.
  5. During Surfing, determine the recorded states that are nearest to the waves state and add danger for the GFs from them.
    • I have tried to weight these factors by how close a match the state was as well.
  6. Surf the waves according to these dangers
  7. Profit

However this kills my score, by a great deal. So I think I am missing something.

Chase-san 08:52, 28 July 2011 (UTC)