Skip to main content

IAgents it is

·98 words·1 min

Info

This post was imported from a personal note. It may contain inside jokes, streams of consciousness, errors, and other nonsense.

Was on the fence about whether to keep IAgent interface so I could have Boids and BraitenBoids and whatever else. I’m going ahead with it. Actually, I’m partway through and I wish I’d split the work up into multiple steps. I’ll stash this branch for now but the steps would be:

  1. Rename BoidProps to AgentProps.
  2. Factor out Evolution from MainVisualize and MainEvaluate.
  3. Make Simulation::boids private.
    1. Remove Boid::fitnessScore.
  4. Change Simulation::boids and related methods to use IAgent and “agents.”