Author Topic: Shadowgod2s "NNetsmallfixed" evolved  (Read 3565 times)

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Shadowgod2s "NNetsmallfixed" evolved
« on: December 07, 2013, 12:06:23 PM »
starting dna:

Code: [Select]
'by Shadowgod2
'first parent to child NNet pass down working
'2 input per neuron
'1 in 10000 chance to change/mutate each neuron aspect

'start nnet

cond
*.robage 1 =
start
5 rnd 995 add 971 store
5 rnd 995 add 972 store
5 rnd 995 add 973 store
5 rnd 995 add 974 store
5 rnd 995 add 975 store
5 rnd 995 add 976 store
5 rnd 995 add 977 store
5 rnd 995 add 978 store
6 rnd 3 sub 979 store
6 rnd 3 sub 980 store
6 rnd 3 sub 981 store
6 rnd 3 sub 982 store
6 rnd 3 sub 983 store
6 rnd 3 sub 984 store
6 rnd 3 sub 985 store
6 rnd 3 sub 986 store
6 rnd 3 sub 987 store
6 rnd 3 sub 988 store
6 rnd 3 sub 989 store
6 rnd 3 sub 990 store
stop

cond
*.robage 2 >
start
1 .delgene store
stop

'birth mutations

cond
*.robage 0 =
start
10000 50 store
stop

cond
*.robage 16 =
start
5 rnd 995 add 971 1 *50 rnd sub 0 floor mult store
5 rnd 995 add 972 *50 rnd sub 0 floor mult store
5 rnd 995 add 973 *50 rnd sub 0 floor mult store
5 rnd 995 add 974 *50 rnd sub 0 floor mult store
5 rnd 995 add 975 *50 rnd sub 0 floor mult store
5 rnd 995 add 976 *50 rnd sub 0 floor mult store
5 rnd 995 add 977 *50 rnd sub 0 floor mult store
5 rnd 995 add 978 *50 rnd sub 0 floor mult store
6 rnd 3 sub 979 *50 rnd sub 0 floor mult store
6 rnd 3 sub 980 *50 rnd sub 0 floor mult store
6 rnd 3 sub 981 *50 rnd sub 0 floor mult store
6 rnd 3 sub 982 *50 rnd sub 0 floor mult store
6 rnd 3 sub 983 *50 rnd sub 0 floor mult store
6 rnd 3 sub 984 *50 rnd sub 0 floor mult store
6 rnd 3 sub 985 *50 rnd sub 0 floor mult store
6 rnd 3 sub 986 *50 rnd sub 0 floor mult store
6 rnd 3 sub 987 *50 rnd sub 0 floor mult store
6 rnd 3 sub 988 *50 rnd sub 0 floor mult store
6 rnd 3 sub 989 *50 rnd sub 0 floor mult store
6 rnd 3 sub 990 *50 rnd sub 0 floor mult store
stop

'input

cond
*.robage 16 >
*.numties 0 =
start
*.eye5 995 store
*.refeye *.myeye sub 996 store
stop

'invisable

cond
*.numties 0 =
*.robage 16 >
start
*971 * *979 mult *972 * *980 mult add *987 add 997 store
*973 * *981 mult *974 * *982 mult add *988 add 998 store
*975 * *983 mult *976 * *984 mult add *989 add 999 store
*977 * *985 mult *978 * *986 mult add *990 add 1000 store
stop

'output

cond
*.numties 0 =
*.robage 16 >
*1000 *990 >
start
-1 .shoot store
stop


cond
*.numties 0 =
*.robage 16 >
*998 5 sub *989 >
start
*999 5 sub -60 floor 60 ceil .up store
stop

cond
*.numties 0 =
*.robage 16 >
*998 5 add *989 <
start
*998 5 add -60 floor 60 ceil .aimsx store
stop

cond
*.numties 0 =
*.robage 16 >
*.nrg 5000 >
*.body 5000 >
start
50 .repro store
stop

resulting dna:

Code: [Select]
'intermediate save from faze 2
'normal reproduction gene re-entroduced

 cond
 *.robage 0 =
 start
 10000 50 store
 stop
''''''''''''''''''''''''  Gene:  1 Ends at position  9  '''''''''''''''''''''''
 cond
 *.robage 16 =
 start
 5 rnd 995 add 971 1 *50 rnd sub 0 floor .aimright store
 mult store
 5 rnd 995 add 972 *50 rnd store
 5 rnd 995 add 973 rnd sub 0 floor mult store
 5 rnd 995 add 974 *50 sub 0 floor ~=
 mult store
 5 rnd swapbool
 995 add 975 *50 rnd sub 0 floor mult store
 .aimright store
 mult rnd 995 add 976 0 floor mult store
 rnd 5 0 floor mult store
 5 rnd 995 add 978 *50 rnd sub 0 floor mult store
 6 sub 979 floor mod mult store
 6 rnd 3 sub 980 *50 rnd sub 0 floor mult store
 6 rnd 3 sub 981 cos *50 rnd sub 0 floor mult store
 6 rnd 3 sub 982 *50 rnd sub 0 floor mult store
 6 rnd 3 sub 983 cos *50 rnd sub 0 sub rnd *50 983 floor mult store
 6 rnd 711 3 sub 984 *50 rnd sub 7 floor mult store
 6 rnd 3 sub 985 *50 rnd sub 0 floor mult store
 6 dup 3 sub 986 *50 rnd sub -5 floor mult store
 >=
 6 rnd 3 sub 987 *50 rnd sub 0 floor mult store
 6 rnd 3 sub 988 *50 rnd sub 3 rnd 0 rnd 3 *-243 sub 989 *50 rnd sub 0 floor mult store
 6 rnd 3 sub *50 rnd sub 0 floor mult substore
 stop
''''''''''''''''''''''''  Gene:  2 Ends at position  248  '''''''''''''''''''''''
 *.robage 16 >
 *.numties 0 start
 *.eye5 995 store
 *.refeye *747 *.refeye store
 995 *.eye5
''''''''''''''''''''''''  Gene:  3 Ends at position  263  ''''''''''''''''''''''' start
 0 sub 996 store
 stop
''''''''''''''''''''''''  Gene:  4 Ends at position  269  '''''''''''''''''''''''
 cond
 *.numties 0 =
 *.robage 16 start
 *971 * *979 mult *972 * *980 mult add *987 add 997 store
 *973 * *981 mult *974 * *982 mult * *988 add 998 store
 *975 * *983 mult *976 * *984 mult add *989 add 999 store
 *977 * * *986 mult add *990 add mult add 1000 store
 stop
''''''''''''''''''''''''  Gene:  5 Ends at position  328  '''''''''''''''''''''''
 cond
 *.numties 0 *1000 *990 >
 start
 -1 .shoot store
 stop
''''''''''''''''''''''''  Gene:  6 Ends at position  339  '''''''''''''''''''''''
 =
 *.robage 16 >
 *998 5 sub *1122 >
 start
 *999 5 clear 48 -60 floor 60 ceil .up store
 stop
''''''''''''''''''''''''  Gene:  7 Ends at position  360  '''''''''''''''''''''''
 cond
 *.numties 0 *.robage 16 >
 *998 <
 start
 *949 5 add -60 floor 60 ceil .aimleft store
 stop
''''''''''''''''''''''''  Gene:  8 Ends at position  379  '''''''''''''''''''''''
 cond
 *.numties 0 =
 *.robage 16 >
 *.nrg 4758 >
 *.body 5000 >
 start
 50 .sexrepro store
 -8 .shoot store
 stop
''''''''''''''''''''''''  Gene:  9 Ends at position  400  '''''''''''''''''''''''
 !=

cond
*.numties 0 =
*.robage 16 >
*.nrg 5000 >
*.body 5000 >
start
50 .repro store
stop

evolved using 2.46C

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Shadowgod2s "NNetsmallfixed" evolved
« Reply #1 on: December 07, 2013, 12:10:15 PM »
This robot was evolved in two runs.
The only difference b/w the first run and second run was a mod to mutation rates, mutation rate ox. and simulation size.
During evolution a sexual reproduction gene was spliced in to replace the normal reproduction gene.
After evolution the normal reproduction gene was added back.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
Re: Shadowgod2s "NNetsmallfixed" evolved
« Reply #2 on: December 07, 2013, 12:45:31 PM »
very nice well done :D

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
Re: Shadowgod2s "NNetsmallfixed" evolved
« Reply #3 on: December 07, 2013, 01:03:38 PM »
btw the bot is a bit out of date the finished bot is in the attachment. it's much smaller and uses the parent NNet instead of a random nnet every time.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Shadowgod2s "NNetsmallfixed" evolved
« Reply #4 on: December 07, 2013, 01:18:01 PM »
Maybe I'll find some time one day to mess with this one as well.  8)