Skip to content

Simonko-912/nvolution

Nvolution

Issues Forks Stars License (Apache 2.0) Version Contributors Downloads Build Status Server Proposals

Evolution creature neural network python game

Watch creatures evolve after generations!

Creatures:

  1. Have 1 layer neural network brains (16 neurons total)
  2. Have 13 segment vision segments
  3. Comunicate using scent
  4. Rare mutations
  5. Only the fitest survive
  6. (Deafult neuron ammount is 64, you can set it to whatever you want the neurons to be, lower for worse devices, delete newest.json before updating) Gameplay:
  7. Only right click to make food right now

Other:

  1. A lot of settings
  2. Saves best neural network to newest.json each generation
  3. Saves generation logs to simulation_log.json

Setting example:

SCREEN_WIDTH, SCREEN_HEIGHT = 1000, 650 # Window size
CREATURE_COUNT = 30 
CREATURE_LIMIT = 100
FOOD_COUNT = 300
REPRODUCE_ENERGY = 170 # Minimal energy needed for 2 random creatures to reproduce
START_ENERGY = 140 # Energy the creature starts with
SCENT_GRID_SIZE = 20
SCENT_DECAY = 0.95
SCENT_STRENGTH = 17.0
VISION_SEGMENTS = 36
VISION_RANGE = 200
GENERATION_STEPS = 1000  # cycles per generation
SCENT_SPREAD_RADIUS = 6
SCENT_FALLOFF = 1.5
SHOW_SCENT = True
LAYER_NEURONS = 64 # number of neurons for the hidden layer, before changing delete the old model!

MODEL_SAVE_PATH = "newest"

Example photos

image image image image