Skip to content

Fitness function encourages death #4

@TurnTheTideTM

Description

@TurnTheTideTM

WHG/Player.js

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions