forked from Ramblurr/scriptbots
-
Notifications
You must be signed in to change notification settings - Fork 44
/
settings.h
48 lines (36 loc) · 2.08 KB
/
settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#define INPUTSIZE 25
#define OUTPUTSIZE 9
#define NUMEYES 4
#define BRAINSIZE 200
#define CONNS 4
#ifndef SETTINGS_H
#define SETTINGS_H
namespace conf {
const int WIDTH = 6000; //width and height of simulation
const int HEIGHT = 3000;
const int WWIDTH = 1600; //window width and height
const int WHEIGHT = 900;
const int CZ = 50; //cell size in pixels, for food squares. Should divide well into Width Height
const int NUMBOTS=70; //initially, and minimally
const float BOTRADIUS=10; //for drawing
const float BOTSPEED= 0.3;
const float SPIKESPEED= 0.005; //how quickly can attack spike go up?
const float SPIKEMULT= 1; //essentially the strength of every spike impact
const int BABIES=2; //number of babies per agent when they reproduce
const float BOOSTSIZEMULT=2; //how much boost do agents get? when boost neuron is on
const float REPRATEH=7; //reproduction rate for herbivors
const float REPRATEC=7; //reproduction rate for carnivors
const float DIST= 150; //how far can the eyes see on each bot?
const float METAMUTRATE1= 0.002; //what is the change in MUTRATE1 and 2 on reproduction? lol
const float METAMUTRATE2= 0.05;
const float FOODINTAKE= 0.002; //how much does every agent consume?
const float FOODWASTE= 0.001; //how much food disapears if agent eats?
const float FOODMAX= 0.5; //how much food per cell can there be at max?
const int FOODADDFREQ= 15; //how often does random square get to full food?
const float FOODTRANSFER= 0.001; //how much is transfered between two agents trading food? per iteration
const float FOOD_SHARING_DISTANCE= 50; //how far away is food shared between bots?
const float TEMPERATURE_DISCOMFORT = 0; //how quickly does health drain in nonpreferred temperatures (0= disabled. 0.005 is decent value)
const float FOOD_DISTRIBUTION_RADIUS=100; //when bot is killed, how far is its body distributed?
const float REPMULT = 5; //when a body of dead animal is distributed, how much of it goes toward increasing birth counter for surrounding bots?
}
#endif