config

package
v0.0.0-...-309fd15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2017 License: MIT Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(filename string)

Types

type Config

type Config struct {
	General struct {
		ScreenWidth  int // Width of screen
		ScreenHeight int // Height of screen
	}

	Entity struct {
		InitialCreatures int     // The number of creatures to start with.
		InitialFood      int     // The number of food blods to start with.
		BreedingRate     int     // Spawn a new creatures every this many ticks.
		FoodSpawnRate    int     // Spawn a new food blob every this many ticks.
		FoodSize         float64 // Size of food blobs to spawn.
	}

	Brain struct {
		ChargeDecayRate     float64
		SynapseMaxCharge    float64
		SynapseOutputScale  float64
		NodeFiringThreshold float64
		NodeFiringStrength  float64
	}

	Genetics struct {
		MutationRate int
	}
}

Config holds all the configuration data for goBrains

var (
	Global Config
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL