Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: Testlund on September 13, 2014, 02:43:38 PM

Title: As it can become!
Post by: Testlund on September 13, 2014, 02:43:38 PM
If you only use the first gene it makes .eye3 rotate anti-clockwise, but if you add the second gene it won't make .eye2 rotate clockwise as one might expect. It does some crazy stuff instead.

cond
 *.robage .eye3dir store
stop

start
 *.robage .eye2dir sub store
stop

I swear, the day computer code makes sense to me I'll be making my own software.  :P
Title: Re: As it can become!
Post by: Botsareus on September 13, 2014, 02:58:01 PM
Code: [Select]
start
 *.robage .eye3dir store
stop

start
 *.robage sub .eye2dir store
stop
Title: Re: As it can become!
Post by: Botsareus on September 13, 2014, 02:59:35 PM
Otherwise you are storing a zero in the memory location defined by " *.robage .eye2dir sub" which does indeed produce some nifty results.
Title: Re: As it can become!
Post by: Testlund on September 13, 2014, 03:15:54 PM
Yeah, I discovered my typo, but it's still weird how that could cause random replication.
Title: Re: As it can become!
Post by: Testlund on September 13, 2014, 04:23:46 PM
Is there a way to increase the rotation speed of the eyes?
Title: Re: As it can become!
Post by: Botsareus on September 13, 2014, 04:51:14 PM
Robot age increments by 1.
To get something that increments by 1 to increment by 2, simply multiply it by 2. e. g.