Code center > Bug reports

Simple repro or robage faulty? 2.43s RESOLVED (NO REPRO)

<< < (3/4) > >>

Testlund:
Ok. Maybe I've crippled my tiebot then. Are you saying all 'cond' statements and 'logical operators' together form the conditionals and that they should be removed if they are in the body of the gene, which if I understand it correctly should be between a start and a stop command? Nums said just remove all logical operators and in my Chainbot you edited you removed all cond statements and logical operators.

Here's what my original tiebot looks like:

 1 mod mult & cond
 floor add angle >=
 or
 or
 & ~ store
 and
 cond
 start
 xor
 mult %=
 dec
 add 3 start
 angle 21 ~ 1 & mult *.setaim -6 sqr *13 - << mod >
 and
 xor
 -5 17 =
 >=
 !=
 floor angle rnd store
 31 store
 >> 5 <
 >
 mult 1 add else
 and
 store
 cond
 >
 >
 and
 *.up mult angle | *345 !~=
 angle dec
 angle ^ -1 div >
 - div xor
 store
 *.shoot << 2 angle =
 store
 6 * >
 dist else
 angle and
 cond
 ~ add store
 start
 *.up dec
 store
 or
 18 ++ store
 dec
 xor
 mult *.up *.hitsx mult inc
 add and
 & ceil <
 store
 !%=
 add - store
 .dn store
 .up store
 store
 <<

Testlund:
And here's my new attempt to fix it:

 1 mod mult & cond
 floor add angle & ~ store
 cond
 start
 mult dec
 add 3 start
 angle 21 ~ 1 & mult *.setaim -6 sqr *13 - << mod -5 17 floor angle rnd store
 31 store
 >> 5 mult 1 add else
 store
 *.up mult angle | *345 angle dec
 angle ^ -1 div - div store
 *.shoot << 2 angle store
 6 * dist else
 angle ~ add store
 start
 *.up dec
 store
 18 ++ store
 dec
 mult *.up *.hitsx mult inc
 add & ceil store
 add - store
 .dn store
 .up store
 store
 <<

In any case the bot seems to work well.

Numsgil:
It's' unlikely that your zerobots were using conditions, so removing ALL the conditional operators fixes the problem of them suddenly working now

Of course, your DNA is now much shorter, so you might want to add in some 0s at the end or something to give them some more wiggle room.

EricL:
I have tested the gene in the first post in this topic and can find no bug.  The gene seems to work, the bot reproduces successfully at age 200.  I have also verified that the .robage memory location is working correctly.

Note that several things must be true for a bot to successfully reproduce:

They must have body > 2.
They must be older than 10 cycles.
There must be room in front of the parent for the offspring to appear.  A bot right up close facing another bot (or a shape) will be prevented from reproducing.

If you still feel there is actually a bug, please post a sim which demonstrates it.  Thanks.

Numsgil:

--- Quote from: EricL ---They must be older than 10 cycles.
--- End quote ---

Is that new?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version