Well, testing my fitness calculation, this happens:
· No lua errors (it works).
· Only it makes 2 good movements, I think elite movements.
· The rest of movmenets are totally absurd, like totally random.
I think if it gets better is because better movements are saved exactly (elite movements), but crossovered movements seems to be absurd always. I guess it happens with default fitness calculation, so I suggest you to find a better way to crossover the movements. If I find an idea, I will post here.
By the way, good script.
Edit: What about
:
· Aument the population to 20
· Calculate average of 20
· Only keep those are beyond the average.
Or just remove those that points are less than 0.
Or crossover only elite movements.
Edit 2: I've found a bug. In comboGA.lua change elite to 3, then try to fulfil the population with 10 new movements. Game will fall in an infinite loop (or crash, I don't know).
Last edited by lilezek; Mar 18, 2010 at 08:44 PM.