create NEAT app repo
This commit is contained in:
commit
9cd2d19fb9
34 files changed
+4454
No files matched your search
@@ -0,0 +1,31 @@
|
||||
#ifndef __Species_h__
|
||||
#define __Species_h__
|
||||
|
||||
#include "Genotype.h"
|
||||
#include <vector>
|
||||
|
||||
#if 0
|
||||
class Species
|
||||
{
|
||||
public:
|
||||
|
||||
Species(const Genotype& leader);
|
||||
|
||||
void Reset();
|
||||
void AddMember(const Genotype& genome);
|
||||
bool AddIfCompatible(const Genotype& genome);
|
||||
void AdjustFitness();
|
||||
float GetFitness();
|
||||
|
||||
Genotype Spawn() const;
|
||||
Genotype GetLeader() const;
|
||||
|
||||
private:
|
||||
|
||||
Genotype m_leader;
|
||||
std::vector<Genotype> m_members;
|
||||
float m_spawn_amount;
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif // __Species_h__
|
||||
Reference in new issue
Block a user