Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: Welwordion on May 12, 2006, 12:22:04 PM

Title: Are .in1, .in2 ... set to 0 when *.eye5 0 =?
Post by: Welwordion on May 12, 2006, 12:22:04 PM
I just wanted to know if the .in variables are reset to zero once a  bot sees no other bot in his .eye5?
Title: Are .in1, .in2 ... set to 0 when *.eye5 0 =?
Post by: PurpleYouko on May 13, 2006, 12:12:47 PM
Ican't remember for certain but I think the in variables get reset whenever the bot sees something in eye5. The out variables stay put indefinitely.

In and out are form before my time and I never really used them much
Title: Are .in1, .in2 ... set to 0 when *.eye5 0 =?
Post by: Endy on May 13, 2006, 07:34:05 PM
Pretty sure they're not reset, until something new is seen. Normally an eye5 checker condition is used to cancel gene activation.

Code: [Select]
cond
*.eye5 45 >
*.in1 *.out1 !=
start
-1 .shoot store
stop