Bots and Simulations > DNA - General

Question on Ties

(1/2) > >>

Endy:
Proving there's always more to learn...  

Which tie exactly is acted upon, if all the ties have the same tie number? Assuming readtie/tienum match the tiepres number, does it go based on the last bot your bot tied to?

Numsgil:
I believe it's supposed to act on all of them.  If it doesn't, it probably acts on the first one with that designation (though this might not be true if you start forming and deleting ties).

Jez:
I thought it just acted on the last tie given the number. Would be nice if it worked on all of them or we could use more than one tie per turn though.

PY kindly explained it to me before, IIRC it will address each of them in turn but only uses the last one because you can only use one tie per turn. Sort of like using two shoots or something, the program goes through the stages of using both but only the last shoot fires.

If I don't remember correctly then that's wrong.  

EricL:
A quick look through the code shows that Nums is correct.  It acts upon all the ties with the same number.

Jez:
You mean you can use more than one tie in a turn or that it acts upon all the ties with the same number but only does something with one of them? In which case is it the first or last tie created with that number?

Navigation

[0] Message Index

[#] Next page

Go to full version