From 17909d029c6a8872b2fddf4e171d7925bbbe9c5c Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 19:27:35 +0100 Subject: Initial commit --- Simulation/SimFitness.hpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Simulation/SimFitness.hpp (limited to 'Simulation/SimFitness.hpp') diff --git a/Simulation/SimFitness.hpp b/Simulation/SimFitness.hpp new file mode 100644 index 0000000..7eb7974 --- /dev/null +++ b/Simulation/SimFitness.hpp @@ -0,0 +1,26 @@ +#ifndef __SIMFITNESS_HPP__ +#define __SIMFITNESS_HPP__ + +#include +#include +#include +#include +#include + +#include "SimBase.hpp" + +class SimFitness : public SimBase +{ + bool startSpecs(); + void updateSpecs(); + + std::unique_ptr population; + + unsigned currentPopulation = 0; + unsigned currentGeneration = 0; + unsigned fitnessRecord = 0; + + friend class Guppie; +}; + +#endif // __SIMFITNESS_HPP__ -- cgit v1.2.1