Code center > Suggestions
Ref sysvar command
MacadamiaNuts:
What if genes were generic "method" structures, and the meaning of each particle in the structure was defined by the connections.
I use here $ as 'value of', # as constant, @ as memory handle.
DNA Elements (these would be the constants to use across all genes)
1: 1000
2: 2000
3: 50
4: 1
5: 2
Primary Gene 1 Connections:
1: robage
2: nrg
3: repro
4: up
Primary Gene 1: Structure
$1 #1 >
$2 #2 >
#3 @3 store
stop
Secondary Gene 2:
1: gene1 (this gene "logic" is applied to gene 1 "meaning")
Secondary Gene 2:
#1 @4 store
1 3 store (connects gene 3 to gene 1)
0 2 store (connects gene 2 to nothing)
stop
Constants and connections can be limited, so all DNA structures are like 1-32. You can easily add sysvars without breaking the old evolved code, and also draw graphically the DNA connections.
Numsgil:
I can see the advantage of having a store of actual values that you reference against. Allows you to abstract the data from the algorithm, so to speak.
Another idea I was playing with was severely limiting the range of values. I played around with having bots only use math between -100 and 100, but found it a bit too limiting in certain cases. Maybe something like -1000 to 1000. Part of the problem in my eyes has been that different sysvars take and give different ranges of numbers. If the operations mapped to a smaller and more uniform range, mutations would be better recieved.
Navigation
[0] Message Index
[*] Previous page
Go to full version