Bots and Simulations > DNA - General

Smart avoiding bahavior

<< < (2/2)

Testlund:
I tried your suggestion but it doesn't seem to make any difference. The problem is that it will turn for each shot that hits it, but it doesn't go on to the next line that tells it to move away.

Here is one that works fairly well:

*.refxpos *.refypos angle sub .setaim store
 32 .up store

If I replace "sub" here with "-" I get a weird result where the bot just keeps switching back and forth if it sees something.

What makes it particularly problematic is that the dna is dependent on what other instructions are written and in what order they occur. Sometimes it just ignores instructions.

Navigation

[0] Message Index

[*] Previous page

Go to full version