Fitness function encourages death
TurnTheTideTM opened this issue · 1 comments
TurnTheTideTM commented
if (this.deathByDot) {
estimatedDistance *= 0.9;
}
this.fitness = 1.0/(estimatedDistance * estimatedDistance);
Not sure if this is intentional, but death seems to increase the fitness (by decreasing the estimated distance to goal).
nnnik commented
Yeah I found the same.
After running the AI for hours in practice it seems that caring or not caring does not have as much impact as you would assume and that not caring seems to be the best option.