Documentation ¶
Index ¶
Constants ¶
View Source
const ( INPUT = 0 HIDDEN = 1 OUTPUT = 2 )
Variables ¶
View Source
var GlobalFont *ttf.Font
TEST
Functions ¶
func DisplayInfo ¶
func DisplayInfo()
func GetGeneration ¶
func GetGeneration() int
func GetRenderer ¶
func NextGeneration ¶
func NextGeneration(genomes []Genome)
func SetCustomInputCoord ¶
func SetCustomInputCoord()
Types ¶
type Genome ¶
type Genome struct {
// contains filtered or unexported fields
}
func CreateGenome ¶
Create a Genome with the number of inputs and outputs
func CrossOverRand ¶
This function is called when both parents have the same fitness
func (*Genome) MutateGenomeConnect ¶
func (g *Genome) MutateGenomeConnect()
Mutate Genome Connection
type Species ¶
type Species struct {
// contains filtered or unexported fields
}
func GetSpecies ¶
func GetSpecies() []Species
Click to show internal directories.
Click to hide internal directories.