Skip to content
Permalink
Browse files

finished part 4

  • Loading branch information
thatgamesguy committed Jul 3, 2018
1 parent d0c063e commit 9a32b740c0d546139c38868f2a10412a3e296db6
@@ -32,16 +32,11 @@ class GeneticAlgorithm
std::shared_ptr<C_NeuralNetwork> SpawnUFO();
void AddToPool(std::shared_ptr<UFOGAData> ufo);

void CalculateTotalFitness();
int FitnessProportionateSelection();

std::vector<std::shared_ptr<UFOGAData>> pool;
ObjectCollection& objects;
WorkingDirectory& workingDir;
ResourceAllocator<sf::Texture>& textureAllocator;
Window& window;
int maxPoolSize;
float totalFitnessScore;
};

#endif /* GeneticAlgorithm_hpp */
@@ -32,16 +32,11 @@ class GeneticAlgorithm
std::shared_ptr<C_NeuralNetwork> SpawnUFO();
void AddToPool(std::shared_ptr<UFOGAData> ufo);

void CalculateTotalFitness();
int FitnessProportionateSelection();

std::vector<std::shared_ptr<UFOGAData>> pool;
ObjectCollection& objects;
WorkingDirectory& workingDir;
ResourceAllocator<sf::Texture>& textureAllocator;
Window& window;
int maxPoolSize;
float totalFitnessScore;
};

#endif /* GeneticAlgorithm_hpp */

0 comments on commit 9a32b74

Please sign in to comment.
You can’t perform that action at this time.