Author Topic: Shvartz, can you help me out?  (Read 41239 times)

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Shvartz, can you help me out?
« Reply #60 on: July 01, 2005, 02:51:46 PM »
nope, does not work.

I guess I'm going to go back in time until I find a robot that works...  sad...  and curious at the same time.  I'll use the autosave feature from now on.
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline Greven

  • Bot Destroyer
  • ***
  • Posts: 345
    • View Profile
Shvartz, can you help me out?
« Reply #61 on: July 01, 2005, 03:14:02 PM »
Num what memory locations are passed to the offspring? All of them? Or only a few? ANSWER ME DB-GOD!
10010011000001110111110100111011001101100100000110110111000011101011110010110000
011000011000001100010110010111101001110100110010111100101000001000001111001011101
001101001110011011010011100011110100111000011101100100000100110011010011100110110
010110000011100111101001110110111101011101100110000111101001101001110111111011101
01100100000111010011010001100001110111010000010001001000010100001

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Shvartz, can you help me out?
« Reply #62 on: July 01, 2005, 04:04:05 PM »
972 through 992 I believe.  It was introduced before my time.  Definately above 950, and there's ~20 of them.

It is not inconcievable that waste stored a value into one of them, and that value was passed on to children.

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Shvartz, can you help me out?
« Reply #63 on: July 01, 2005, 04:42:57 PM »
BTW, I distinctly remember that genes 1-3 were not active.  So, don't bother looking at those...
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline Greven

  • Bot Destroyer
  • ***
  • Posts: 345
    • View Profile
Shvartz, can you help me out?
« Reply #64 on: July 01, 2005, 04:46:47 PM »
Yes there would be if the energy level rises above 20000 or something.
10010011000001110111110100111011001101100100000110110111000011101011110010110000
011000011000001100010110010111101001110100110010111100101000001000001111001011101
001101001110011011010011100011110100111000011101100100000100110011010011100110110
010110000011100111101001110110111101011101100110000111101001101001110111111011101
01100100000111010011010001100001110111010000010001001000010100001

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Shvartz, can you help me out?
« Reply #65 on: July 01, 2005, 05:02:59 PM »
OK, I tracked the mutation to somewhere around 4 million cycles.  There are two bots, 3.8 and 4.2 and the 3.8 bot is still shooting fine, but the 4.2 does not shoot anymore.  Here are the sequences:

3.8 bot (shooting):
Code: [Select]
cond
  *.nrg  20536 >
  *.nrg  20536 !%=
start
  *.tielen3 sub inc
 inc
  *.daytime inc
 mult inc
  50  300  369  380
stop

'''''''''Gene  2: Last 'stop' at position  21'''''''''

cond
  *.nrg  20536 >
  *.nrg  20536 !%=
  *.nrg  19616 !%=
start
 inc
  51  300
stop

'''''''''Gene  3: Last 'stop' at position  36'''''''''

cond
  *.nrg  20536 >
  *.nrg  20536 !%=
  *.nrg  19616 !%=
start
 inc
  51  300
stop

'''''''''Gene  4: Last 'stop' at position  51'''''''''

cond
  *.out2  *490  0 store
stop

'''''''''Gene  5: Last 'stop' at position  57'''''''''

cond
  *.shareslime  *180 !=
start
  1219  *.refvelsx store
  *652  *.rdboy -12 rnd  *553 -12 rnd sub rnd sub sub rnd  *790  *387 -1173  *.rdboy rnd store
  *387  *.rdboy store
  *.sharenrg sub  *735  *916  *.mydn rnd  *.shootval  *.shdx mult  *735  *372  *768 rnd inc
  446 -130 dec
 rnd  *735 rnd -215  *.mass dec
  *615 -1 div -1292  *.pwaste inc
 inc
  *.pwaste inc
  *595 inc
  *307 div  460 -565  644  1180 store
  *273 dec
  *353 -1179 dec
 store
  *948  218 -1203 div add inc
  841  11 dec
  841 -549  11 inc
  *868  *.trefvelmydx -434  1 div div inc
  9  1  354 store
  10 add  *.fdbody  1  *676 store
  11  .up store
 store
  1278 inc
  1342
stop

'''''''''Gene  6: Last 'stop' at position  171'''''''''

cond
  *.shareslime  *.eye8 !%=
start
  1168 sub  *.refvelsx store
  *652  *553 -12 dec
  *.sx sub rnd mult rnd sub  962  *.hitup  *735  *.shdx dec
  *735  *107 -1195  *772  *.trefypos div  *772  *.trefypos div dec
 rnd  *.kills rnd inc
  *735 rnd inc
  *735 rnd  669 inc
  *735 rnd sub inc
  *.daytime dec
  .up store
 div -1460 -1292  *.pwaste inc
 inc
  395 -909 add  *803  *307 div add  *307 div  460 -565  460 -565  *947 dec
 store
  *.tie  218 -1203 inc
  10  *868  *381 inc
 div  *.trefvelmydn  1 div  9 -8  1  354 store
  10 add  1  *676 store
  11  .up store
 store
  *415  1278 inc
  *102  1342
stop

'''''''''Gene  7: Last 'stop' at position  278'''''''''

cond
start
  *.tieang2  *591 inc
  *.trefypos  *591 inc
 sub -382  *.vel -331 inc
  401 -376 -792 inc
 -1163 -178 div  944 -1  7 rnd -949
stop

'''''''''Gene  8: Last 'stop' at position  304'''''''''

cond
start
 -1  7 -1  7
stop

'''''''''Gene  9: Last 'stop' at position  311'''''''''

cond
start
 store
 sub  10 add sub  10 rnd add  *650  *969 store
 dec
 div sub mult dec
 sub sub store
 div sub store
 div sub inc
 dec
 sub store
 dec
 inc
 div dec
 inc
 add dec
 inc
 add  1 sub
stop

'''''''''Gene  10: Last 'stop' at position  353'''''''''

end

4.2 bot (not shooting anymore):

Code: [Select]
cond
  *.nrg  20536 >
  *.nrg  20536 !%=
start
  *.tielen3 inc
 inc
  *.daytime inc
  *102 inc
 rnd  50  *.myeye  300  369  380  *297
stop

'''''''''Gene  2: Last 'stop' at position  23'''''''''

cond
  *.nrg  20536 >
  *.nrg  20536 !%=
  *.nrg  19616 !%=
start
 inc
  51  300
stop

'''''''''Gene  3: Last 'stop' at position  38'''''''''

cond
  *.nrg  20536 >
  *.nrg  20536 !%=
  *.nrg  19616 !%=
start
 inc
  53  300
stop

'''''''''Gene  4: Last 'stop' at position  53'''''''''

cond
  *.out2  *490  0 store
stop

'''''''''Gene  5: Last 'stop' at position  59'''''''''

cond
  *.shareslime  *180 !%=
start
  1168  *.refvelsx store
  *652  *.rdboy -12 rnd  *553 -12 rnd sub rnd sub sub rnd  *790  *387  *.veldx  *.rdboy rnd  *387  *.rdboy rnd  *.sharenrg sub  *121  *735  *916  *.mydn rnd  *.shootval  *.shdx mult  *735  *372  *768 rnd inc
  446 -130 dec
 rnd -130 dec
 rnd  *735 rnd -215  *.daytime dec
  *615 -1 div -1292  *.pwaste inc
 inc
  *.pwaste inc
 inc
  *.pwaste inc
 mult  *307 div  460 -565  644 -818  1180 store
  *273 dec
  *353 -1179 dec
 store
  *948  218 -1203 inc
  841  11 dec
  841 -549  11 inc
  *868  *.trefvelmydx -434  1 div div inc
  9  1  354 store
  10 add  *.fdbody  1  *676 store
  11  342 store
 store
  1278 inc
  1342
stop

'''''''''Gene  6: Last 'stop' at position  177'''''''''

cond
  *.shareslime  *.eye8 !%=
start
  1168  *.refvelsx store
  *652  *553 -12 dec
  *.sx sub inc
 rnd mult rnd dec
 mult  962  *.hitup  *735  *.shdx dec
  *735  *107 -1195  *772  *.trefypos div  *772  *606  *.trefypos div dec
 rnd  *735 rnd  *.fixpos inc
  *735 rnd inc
 div  *735 rnd  669 div inc
  *.tieloc rnd sub -952 inc
  *.daytime dec
  .up store
 div -1460 -1292  *.pwaste inc
 inc
  395 -909 add -187  *307 div add  *307 div  460 -565  460 -565  460 -565 div store
 dec
 store
  *.tie  218 -1203 inc
  10  *363  *868  *381 inc
 div  *.trefvelmydn  1 div  9 -8  1  354 store
  10 add  1  *676 store
  11  .up store
 store
  *415  1278 inc
  1342  *.shdn
stop

'''''''''Gene  7: Last 'stop' at position  294'''''''''

cond
start
  *.tieang2  *591 inc
  *.trefypos  *591 rnd rnd -382  *816 -331  401 -376 -792 inc
 -1163 -178 div dec
 -1  7 rnd -949
stop

'''''''''Gene  8: Last 'stop' at position  319'''''''''

cond
start
 -1  7 -1  7
stop

'''''''''Gene  9: Last 'stop' at position  326'''''''''

cond
 store
 sub  10 add sub  10 rnd add dec
  *268  *650  *969 store
 dec
 dec
 inc
 inc
 sub mult dec
 sub mult dec
 sub sub store
 div sub inc
 dec
  *50 div sub store
 dec
 inc
 div dec
 inc
 add dec
 inc
 add  1 sub
stop

'''''''''Gene  10: Last 'stop' at position  373'''''''''

end
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline Greven

  • Bot Destroyer
  • ***
  • Posts: 345
    • View Profile
Shvartz, can you help me out?
« Reply #66 on: July 01, 2005, 05:31:13 PM »
It is because bot 4.2 is missing its 'start' command in gene 9.

In both bots, gene 8 is -1 7 -1 7, which is -1 .shoot, by the gene 9, we have a store command, which stores -1 in the memory location 7 (.shoot), I think if the bots are allowed to run through this mutation (losing the start) it is okay for the program, but if you try running it again, it will malfunction.

I have just tested bot 4.2 with a start, and it confirms my theory, if you put a 'start' in gene 9, the bot works perfectly!
« Last Edit: July 01, 2005, 05:32:00 PM by Greven »
10010011000001110111110100111011001101100100000110110111000011101011110010110000
011000011000001100010110010111101001110100110010111100101000001000001111001011101
001101001110011011010011100011110100111000011101100100000100110011010011100110110
010110000011100111101001110110111101011101100110000111101001101001110111111011101
01100100000111010011010001100001110111010000010001001000010100001

Offline Sprotiel

  • Bot Destroyer
  • ***
  • Posts: 135
    • View Profile
Shvartz, can you help me out?
« Reply #67 on: July 01, 2005, 05:32:53 PM »
I think the problem comes from the lack of a "start" block in gene 9. My hypothesis: "start" was replaced by a shadow "start" block, which still functions but doesn't get saved or printed. Num or PY can probably figure out if and how such a thing is possible.

Edit: damn, Greven beat me by a minute!
« Last Edit: July 01, 2005, 05:33:45 PM by Sprotiel »

Offline Greven

  • Bot Destroyer
  • ***
  • Posts: 345
    • View Profile
Shvartz, can you help me out?
« Reply #68 on: July 01, 2005, 05:35:40 PM »
LOL! NOW I should get my master in DB! ;)

Okay maybe I should just start out with a bachelor?
« Last Edit: July 01, 2005, 05:41:33 PM by Greven »
10010011000001110111110100111011001101100100000110110111000011101011110010110000
011000011000001100010110010111101001110100110010111100101000001000001111001011101
001101001110011011010011100011110100111000011101100100000100110011010011100110110
010110000011100111101001110110111101011101100110000111101001101001110111111011101
01100100000111010011010001100001110111010000010001001000010100001

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Shvartz, can you help me out?
« Reply #69 on: July 01, 2005, 06:44:02 PM »
Good detective job, guys!

Well, we can go back to that bot I posted before and look at how it slows down after running into food.
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Shvartz, can you help me out?
« Reply #70 on: July 01, 2005, 07:00:32 PM »
Well it slowes down because its apperantly it has less mass (by mass I mean the stuff used in the collision forumla) then the vegs. Now we have to figure out how does it keep itself so skinny.

I also want to point out that this robot does not reproduce , it kills off all its babys , looks to me that it is giving no energy to its babys. (another bug in the dna source?)
« Last Edit: July 01, 2005, 07:01:47 PM by Botsareus »

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Shvartz, can you help me out?
« Reply #71 on: July 01, 2005, 07:41:13 PM »
Reproduces fine for me.  50/50
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline Sprotiel

  • Bot Destroyer
  • ***
  • Posts: 135
    • View Profile
Shvartz, can you help me out?
« Reply #72 on: July 01, 2005, 07:44:50 PM »
Quote
I also want to point out that this robot does not reproduce , it kills off all its babys , looks to me that it is giving no energy to its babys. (another bug in the dna source?)
Yes, there's another bug to correct: in gene 4 the superfluous 'cond' should be a 'start'. This way gene 4 is always activated (because 0 0 !%= is true) and it reproduces with 53 300 store. Otherwise, it reproduces with *.myeye .repro store...

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Shvartz, can you help me out?
« Reply #73 on: July 02, 2005, 10:39:29 AM »
K thx

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Shvartz, can you help me out?
« Reply #74 on: July 06, 2005, 09:07:43 PM »
Another update: I am at around 9 million cycles.  The bots are at about 14 genes now.  I just wanted to comment about a surprising amount of active genes in these bots.  Out of 14 genes only one gene is permanently inactive.  Nine genes are permanently active.  Four genes are activated during reproduction (and one gene from the active nine is inactivated during reproduction).

Don't you think it is surprising?  I mean, if genes are redundant (or junk) then they are very likely to become inactived and turn into complete junk.  Yet they are still active, which to me suggests that they are doing something, they are increasing fitness of bots.
"Never underestimate the power of stupid things in big numbers" - Serious Sam