Tuesday, March 1, 2011

Strategy loops

After close examination of the tactics employed by the best individuals from successive generations, I noticed that strategies that were the best in early generations got superseded, as you would expect, but then reappeared several generations later!

While this at first was somewhat puzzling there turned out to be a logical explanation: If program x is always beaten by program y, and y by program z, then that does not mean that x cannot beat z. In practice it was more like this:

  1. program a from population A is randomly selected
  2. program b from population B beats a
  3. c from A beats b
  4. d from B beats c
  5. e from A beats d
  6. f from B beats e
  7. g from A beats f
  8. ...
  9. m from A beats l
  10. n, equivalent to f, from B beats m
  11. repeats from step 7.

So this was why the simulation never produced strong players.

Next, I will describe how I solved this problem, but I'd be interested to hear from you if you have any suggestions.

No comments:

Post a Comment