Difference between revisions of "Simplebottxt"
From WikiManual
m |
(Changed .backshoot to .backshot) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 217: | Line 217: | ||
===simplebot6.txt=== | ===simplebot6.txt=== | ||
− | <pre></pre> | + | <pre> |
+ | ' Simplebot 1 | ||
+ | ' Gene1. Simple search pattern. | ||
+ | cond | ||
+ | *.eye3 *.eye5 > | ||
+ | start | ||
+ | -25 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene2. Simple search pattern part 2 | ||
+ | cond | ||
+ | *.eye7 *.eye5 > | ||
+ | start | ||
+ | 25 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 3. Move forward | ||
+ | cond | ||
+ | *.vel 30 < | ||
+ | *.numties 0 = | ||
+ | start | ||
+ | 30 *.vel sub .up store | ||
+ | stop | ||
+ | |||
+ | ' Gene 4. Shoot the food | ||
+ | cond | ||
+ | *.eye5 40 > | ||
+ | start | ||
+ | -1 .shoot store | ||
+ | stop | ||
+ | |||
+ | ' Gene 5. Reproduce | ||
+ | cond | ||
+ | *.nrg 5000 > | ||
+ | start | ||
+ | 50 .repro store | ||
+ | stop | ||
+ | |||
+ | ' Gene 6. Avoid conspecifics | ||
+ | cond | ||
+ | *.refeye 6 = | ||
+ | *.eye5 0 > | ||
+ | start | ||
+ | 180 .aimdx store | ||
+ | stop | ||
+ | |||
+ | end | ||
+ | </pre> | ||
===simplebot7.txt=== | ===simplebot7.txt=== | ||
Line 223: | Line 270: | ||
===simplebot8.txt=== | ===simplebot8.txt=== | ||
− | <pre></pre> | + | <pre> |
+ | ' Simplebot 1 | ||
+ | ' Gene1. Simple search pattern. | ||
+ | cond | ||
+ | *.eye3 *.eye5 > | ||
+ | start | ||
+ | -25 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene2. Simple search pattern part 2 | ||
+ | cond | ||
+ | *.eye7 *.eye5 > | ||
+ | start | ||
+ | 25 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 3. Move forward | ||
+ | cond | ||
+ | *.vel 30 < | ||
+ | *.numties 0 = | ||
+ | start | ||
+ | 30 *.vel sub .up store | ||
+ | stop | ||
+ | |||
+ | ' Gene 4. Shoot the food | ||
+ | cond | ||
+ | *.eye5 40 > | ||
+ | start | ||
+ | -1 .shoot store | ||
+ | stop | ||
+ | |||
+ | ' Gene 5. Reproduce | ||
+ | cond | ||
+ | *.nrg 5000 > | ||
+ | start | ||
+ | 50 .repro store | ||
+ | stop | ||
+ | |||
+ | ' Gene 6. Avoid conspecifics | ||
+ | cond | ||
+ | *.refeye 5 = | ||
+ | start | ||
+ | 180 .aimdx store | ||
+ | stop | ||
+ | |||
+ | end | ||
+ | </pre> | ||
===simplebot9.txt=== | ===simplebot9.txt=== | ||
− | <pre></pre> | + | <pre> |
+ | ' Simplebot 1 | ||
+ | ' Gene1. Simple search pattern. | ||
+ | cond | ||
+ | *.eye3 *.eye5 > | ||
+ | start | ||
+ | -25 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene2. Simple search pattern part 2 | ||
+ | cond | ||
+ | *.eye7 *.eye5 > | ||
+ | start | ||
+ | 25 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 3. Move forward | ||
+ | cond | ||
+ | *.vel 30 < | ||
+ | *.numties 0 = | ||
+ | *.refeye 5 != | ||
+ | start | ||
+ | 30 *.vel sub .up store | ||
+ | stop | ||
+ | |||
+ | ' Gene 4. Shoot the food | ||
+ | cond | ||
+ | *.eye5 40 > | ||
+ | start | ||
+ | -1 .shoot store | ||
+ | stop | ||
+ | |||
+ | ' Gene 5. Reproduce | ||
+ | cond | ||
+ | *.nrg 5000 > | ||
+ | start | ||
+ | 50 .repro store | ||
+ | stop | ||
+ | |||
+ | ' Gene 6. Avoid conspecifics | ||
+ | cond | ||
+ | *.refeye 5 = | ||
+ | start | ||
+ | 180 .aimdx store | ||
+ | stop | ||
+ | |||
+ | end | ||
+ | </pre> | ||
===simplebot10.txt=== | ===simplebot10.txt=== | ||
− | <pre></pre> | + | <pre> |
+ | ' Simplebot 1 | ||
+ | ' Gene1. Simple search pattern. | ||
+ | cond | ||
+ | *.eye3 *.eye5 > | ||
+ | start | ||
+ | -25 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene2. Simple search pattern part 2 | ||
+ | cond | ||
+ | *.eye7 *.eye5 > | ||
+ | start | ||
+ | 25 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 3. Move forward | ||
+ | cond | ||
+ | *.vel 30 < | ||
+ | *.refeye 5 != | ||
+ | start | ||
+ | 30 *.vel sub 2 div .up store | ||
+ | stop | ||
+ | |||
+ | ' Gene 4. Shoot the food | ||
+ | cond | ||
+ | *.eye5 40 > | ||
+ | start | ||
+ | -1 .shoot store | ||
+ | stop | ||
+ | |||
+ | ' Gene 5. Reproduce | ||
+ | cond | ||
+ | *.nrg 5000 > | ||
+ | start | ||
+ | 50 .repro store | ||
+ | stop | ||
+ | |||
+ | ' Gene 6. Avoid conspecifics | ||
+ | cond | ||
+ | *.refeye 5 = | ||
+ | start | ||
+ | 180 .aimdx store | ||
+ | stop | ||
+ | |||
+ | end | ||
+ | </pre> | ||
===simplebot11.txt=== | ===simplebot11.txt=== | ||
− | <pre></pre> | + | <pre> |
+ | ' Simplebot 1 | ||
+ | ' Gene1. Simple search pattern. | ||
+ | cond | ||
+ | *.eye3 *.eye5 > | ||
+ | start | ||
+ | -25 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene2. Simple search pattern part 2 | ||
+ | cond | ||
+ | *.eye7 *.eye5 > | ||
+ | start | ||
+ | 25 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 3. Move forward | ||
+ | cond | ||
+ | *.vel 30 < | ||
+ | *.refeye 5 != | ||
+ | start | ||
+ | 30 *.vel sub 2 div .up store | ||
+ | stop | ||
+ | |||
+ | ' Gene 4. Shoot the food | ||
+ | cond | ||
+ | *.eye5 40 > | ||
+ | start | ||
+ | -1 .shoot store | ||
+ | stop | ||
+ | |||
+ | ' Gene 5. Reproduce | ||
+ | cond | ||
+ | *.nrg 5000 > | ||
+ | start | ||
+ | 50 .repro store | ||
+ | stop | ||
+ | |||
+ | ' Gene 6. Avoid conspecifics | ||
+ | cond | ||
+ | *.refeye 5 = | ||
+ | start | ||
+ | 180 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 7 wide search 1 | ||
+ | cond | ||
+ | *.eye1 *.eye5 > | ||
+ | start | ||
+ | -100 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 8 wide search 2 | ||
+ | cond | ||
+ | *.eye9 *.eye5 > | ||
+ | start | ||
+ | 100 .aimdx store | ||
+ | stop | ||
+ | |||
+ | end | ||
+ | </pre> | ||
===simplebot12.txt=== | ===simplebot12.txt=== | ||
− | <pre></pre> | + | <pre> |
+ | ' Simplebot 1 | ||
+ | ' Gene1. Simple search pattern. | ||
+ | cond | ||
+ | *.eye3 *.eye5 > | ||
+ | start | ||
+ | -25 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene2. Simple search pattern part 2 | ||
+ | cond | ||
+ | *.eye7 *.eye5 > | ||
+ | start | ||
+ | 25 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 3. Move forward | ||
+ | cond | ||
+ | *.vel 30 < | ||
+ | *.refeye 9 != | ||
+ | start | ||
+ | 30 *.vel sub 2 div .up store | ||
+ | stop | ||
+ | |||
+ | ' Gene 4. Shoot the food | ||
+ | cond | ||
+ | *.eye5 40 > | ||
+ | start | ||
+ | -1 .shoot store | ||
+ | stop | ||
+ | |||
+ | ' Gene 5. Reproduce | ||
+ | cond | ||
+ | *.nrg 5000 > | ||
+ | start | ||
+ | 50 .repro store | ||
+ | stop | ||
+ | |||
+ | ' Gene 6. Avoid conspecifics | ||
+ | cond | ||
+ | *.refeye 9 = | ||
+ | start | ||
+ | 180 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 7 wide search 1 | ||
+ | cond | ||
+ | *.eye1 *.eye5 > | ||
+ | start | ||
+ | -100 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 8 wide search 2 | ||
+ | cond | ||
+ | *.eye9 *.eye5 > | ||
+ | start | ||
+ | 100 .aimdx store | ||
+ | stop | ||
+ | |||
+ | end | ||
+ | </pre> | ||
===simplebot13.txt=== | ===simplebot13.txt=== | ||
− | <pre></pre> | + | <pre> |
+ | ' Simplebot 1 | ||
+ | ' Gene 7 wide search 1 | ||
+ | cond | ||
+ | *.eye1 *.eye5 > | ||
+ | start | ||
+ | -100 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 8 wide search 2 | ||
+ | cond | ||
+ | *.eye9 *.eye5 > | ||
+ | start | ||
+ | 100 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene1. Simple search pattern. | ||
+ | cond | ||
+ | *.eye3 *.eye5 > | ||
+ | start | ||
+ | -25 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene2. Simple search pattern part 2 | ||
+ | cond | ||
+ | *.eye7 *.eye5 > | ||
+ | start | ||
+ | 25 .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 3. Move forward | ||
+ | cond | ||
+ | *.vel 30 < | ||
+ | *.refeye 9 != | ||
+ | start | ||
+ | 30 *.vel sub 2 div .up store | ||
+ | stop | ||
+ | |||
+ | ' Gene 4. Shoot the food | ||
+ | cond | ||
+ | *.eye5 40 > | ||
+ | start | ||
+ | -1 .shoot store | ||
+ | stop | ||
+ | |||
+ | ' Gene 5. Reproduce | ||
+ | cond | ||
+ | *.nrg 5000 > | ||
+ | start | ||
+ | 50 .repro store | ||
+ | stop | ||
+ | |||
+ | ' Gene 6. Avoid conspecifics | ||
+ | cond | ||
+ | *.refeye 9 = | ||
+ | start | ||
+ | 180 .aimdx store | ||
+ | stop | ||
+ | |||
+ | end | ||
+ | </pre> | ||
===simplebot14.txt=== | ===simplebot14.txt=== | ||
− | <pre></pre> | + | <pre> |
+ | ' Simplebot 1 | ||
+ | ' Gene 7 wide search 1 | ||
+ | cond | ||
+ | *.eye1 *.eye5 > | ||
+ | start | ||
+ | mult -100 | ||
+ | stop | ||
+ | |||
+ | ' Gene 8 wide search 2 | ||
+ | cond | ||
+ | *.eye9 *.eye5 > | ||
+ | start | ||
+ | mult 100 | ||
+ | stop | ||
+ | |||
+ | ' Gene1. Simple search pattern. | ||
+ | cond | ||
+ | *.eye3 *.eye5 > | ||
+ | start | ||
+ | mult -25 | ||
+ | stop | ||
+ | |||
+ | ' Gene2. Simple search pattern part 2 | ||
+ | cond | ||
+ | *.eye7 *.eye5 > | ||
+ | start | ||
+ | mult 25 | ||
+ | stop | ||
+ | |||
+ | ' Gene 3. Move forward | ||
+ | cond | ||
+ | *.vel 30 < | ||
+ | *.refeye 9 != | ||
+ | start | ||
+ | 30 *.vel sub 2 div .up store | ||
+ | stop | ||
+ | |||
+ | ' Gene 4. Shoot the food | ||
+ | cond | ||
+ | *.eye5 40 > | ||
+ | start | ||
+ | -1 .shoot store | ||
+ | stop | ||
+ | |||
+ | ' Gene 5. Reproduce | ||
+ | cond | ||
+ | *.nrg 5000 > | ||
+ | start | ||
+ | 50 .repro store | ||
+ | stop | ||
+ | |||
+ | ' Gene 6. Avoid conspecifics | ||
+ | cond | ||
+ | *.refeye 9 = | ||
+ | start | ||
+ | mult 180 | ||
+ | stop | ||
+ | |||
+ | ' Gene 9. rotate | ||
+ | cond | ||
+ | start | ||
+ | .aimdx store | ||
+ | stop | ||
+ | |||
+ | end | ||
+ | </pre> | ||
===simplebot15.txt=== | ===simplebot15.txt=== | ||
− | <pre></pre> | + | <pre> |
+ | ' Simplebot 1 | ||
+ | ' Gene 7 wide search 1 | ||
+ | cond | ||
+ | *.eye1 *.eye5 > | ||
+ | start | ||
+ | mult -100 | ||
+ | stop | ||
+ | |||
+ | ' Gene 8 wide search 2 | ||
+ | cond | ||
+ | *.eye9 *.eye5 > | ||
+ | start | ||
+ | mult 100 | ||
+ | stop | ||
+ | |||
+ | ' Gene1. Simple search pattern. | ||
+ | cond | ||
+ | *.eye3 *.eye5 > | ||
+ | start | ||
+ | mult -25 | ||
+ | stop | ||
+ | |||
+ | ' Gene2. Simple search pattern part 2 | ||
+ | cond | ||
+ | *.eye7 *.eye5 > | ||
+ | start | ||
+ | mult 25 | ||
+ | stop | ||
+ | |||
+ | ' Gene 3. Move forward | ||
+ | cond | ||
+ | *.vel 30 < | ||
+ | *.refeye 10 != | ||
+ | start | ||
+ | 30 *.vel sub 2 div .up store | ||
+ | stop | ||
+ | |||
+ | ' Gene 4. Shoot the food | ||
+ | cond | ||
+ | *.eye5 40 > | ||
+ | start | ||
+ | -1 .shoot store | ||
+ | stop | ||
+ | |||
+ | ' Gene 5. Reproduce | ||
+ | cond | ||
+ | *.nrg 5000 > | ||
+ | *.eye5 40 < | ||
+ | start | ||
+ | 50 .repro store | ||
+ | stop | ||
+ | |||
+ | ' Gene 6. Avoid conspecifics | ||
+ | cond | ||
+ | *.refeye 10 = | ||
+ | start | ||
+ | mult 180 | ||
+ | stop | ||
+ | |||
+ | ' Gene 9. rotate | ||
+ | cond | ||
+ | start | ||
+ | .aimdx store | ||
+ | stop | ||
+ | |||
+ | end | ||
+ | </pre> | ||
===simplebot16.txt=== | ===simplebot16.txt=== | ||
− | <pre></pre> | + | <pre> |
+ | ' Simplebot 1 | ||
+ | ' Gene 7 wide search 1 | ||
+ | cond | ||
+ | *.eye1 *.eye5 > | ||
+ | start | ||
+ | mult -100 | ||
+ | stop | ||
+ | |||
+ | ' Gene 8 wide search 2 | ||
+ | cond | ||
+ | *.eye9 *.eye5 > | ||
+ | start | ||
+ | mult 100 | ||
+ | stop | ||
+ | |||
+ | ' Gene1. Simple search pattern. | ||
+ | cond | ||
+ | *.eye3 *.eye5 > | ||
+ | start | ||
+ | mult -25 | ||
+ | stop | ||
+ | |||
+ | ' Gene2. Simple search pattern part 2 | ||
+ | cond | ||
+ | *.eye7 *.eye5 > | ||
+ | start | ||
+ | mult 25 | ||
+ | stop | ||
+ | |||
+ | ' Gene 3. Move forward | ||
+ | cond | ||
+ | *.vel 30 < | ||
+ | *.refeye 9 != | ||
+ | start | ||
+ | 30 *.vel sub 2 div .up store | ||
+ | stop | ||
+ | |||
+ | ' Gene 4. Shoot the food | ||
+ | cond | ||
+ | *.eye5 40 > | ||
+ | start | ||
+ | -1 .shoot store | ||
+ | stop | ||
+ | |||
+ | ' Gene 6. Avoid conspecifics | ||
+ | cond | ||
+ | *.refeye 9 = | ||
+ | start | ||
+ | mult 180 | ||
+ | stop | ||
+ | |||
+ | ' Gene 12 | ||
+ | cond | ||
+ | *50 0 > | ||
+ | start | ||
+ | mult 628 | ||
+ | 50 dec | ||
+ | stop | ||
+ | |||
+ | ' Gene 5. Reproduce | ||
+ | cond | ||
+ | *.nrg 5000 > | ||
+ | start | ||
+ | 50 .repro store | ||
+ | mult 628 | ||
+ | 50 inc | ||
+ | stop | ||
+ | |||
+ | ' Gene 9. rotate | ||
+ | cond | ||
+ | start | ||
+ | .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene10. Tie to parent | ||
+ | cond | ||
+ | *.robage 0 = | ||
+ | start | ||
+ | .tie inc | ||
+ | stop | ||
+ | |||
+ | ' Gene 11. Sever tie to parent | ||
+ | cond | ||
+ | *.robage 1 = | ||
+ | start | ||
+ | .deltie inc | ||
+ | stop | ||
+ | |||
+ | end | ||
+ | </pre> | ||
===simplebot17.txt=== | ===simplebot17.txt=== | ||
− | <pre></pre> | + | <pre> |
+ | ' Simplebot V2.3 | ||
+ | ' Gene 7 wide search 1 | ||
+ | cond | ||
+ | *.eye1 *.eye5 > | ||
+ | start | ||
+ | mult -140 | ||
+ | stop | ||
+ | |||
+ | ' Gene 8 wide search 2 | ||
+ | cond | ||
+ | *.eye9 *.eye5 > | ||
+ | start | ||
+ | mult 140 | ||
+ | stop | ||
+ | |||
+ | ' Gene1. Simple search pattern. | ||
+ | cond | ||
+ | *.eye4 *.eye5 > | ||
+ | start | ||
+ | mult -35 | ||
+ | stop | ||
+ | |||
+ | ' Gene2. Simple search pattern part 2 | ||
+ | cond | ||
+ | *.eye6 *.eye5 > | ||
+ | start | ||
+ | mult 35 | ||
+ | stop | ||
+ | |||
+ | ' Gene 3. Move forward | ||
+ | cond | ||
+ | *.vel 40 < | ||
+ | *.refeye 9 != | ||
+ | start | ||
+ | 40 *.vel sub 2 div .up store | ||
+ | stop | ||
+ | |||
+ | ' Gene 4. Shoot the food | ||
+ | cond | ||
+ | *.eye5 40 > | ||
+ | *.refeye *.myeye != | ||
+ | start | ||
+ | -1 .shoot store | ||
+ | stop | ||
+ | |||
+ | ' Gene 5. Reproduce | ||
+ | cond | ||
+ | *.nrg 5000 > | ||
+ | start | ||
+ | 50 .repro store | ||
+ | stop | ||
+ | |||
+ | ' Gene 6. Avoid conspecifics | ||
+ | cond | ||
+ | *.refeye 9 = | ||
+ | start | ||
+ | mult 180 | ||
+ | stop | ||
+ | |||
+ | 'Gene 9. Get rid of that waste | ||
+ | cond | ||
+ | *.waste 100 > | ||
+ | start | ||
+ | -4 .shoot store | ||
+ | *.waste .shootval store | ||
+ | stop | ||
+ | |||
+ | ' Gene 10. Perform the rotation | ||
+ | cond | ||
+ | start | ||
+ | .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 11. slide to the side. | ||
+ | cond | ||
+ | *.aimdx 0 != | ||
+ | *.aimdx 180 != | ||
+ | start | ||
+ | *.aimdx 10 div .dx store | ||
+ | stop | ||
+ | |||
+ | end | ||
+ | </pre> | ||
===simplebot18.txt=== | ===simplebot18.txt=== | ||
− | <pre></pre> | + | <pre> |
+ | ' Simplebot V2.3 | ||
+ | ' Gene 7 wide search 1 | ||
+ | cond | ||
+ | *.eye1 *.eye5 > | ||
+ | start | ||
+ | mult -140 | ||
+ | stop | ||
+ | |||
+ | ' Gene 8 wide search 2 | ||
+ | cond | ||
+ | *.eye9 *.eye5 > | ||
+ | start | ||
+ | mult 140 | ||
+ | stop | ||
+ | |||
+ | ' Gene1. Simple search pattern. | ||
+ | cond | ||
+ | *.eye4 *.eye6 > | ||
+ | start | ||
+ | mult -35 | ||
+ | stop | ||
+ | |||
+ | ' Gene2. Simple search pattern part 2 | ||
+ | cond | ||
+ | *.eye6 *.eye4 > | ||
+ | start | ||
+ | mult 35 | ||
+ | stop | ||
+ | |||
+ | ' Gene 3. Move forward | ||
+ | cond | ||
+ | *.vel 40 < | ||
+ | *.refeye *.myeye != | ||
+ | start | ||
+ | 40 *.vel sub 2 div .up store | ||
+ | stop | ||
+ | |||
+ | ' Gene 4. Shoot the food | ||
+ | cond | ||
+ | *.eye5 40 > | ||
+ | *.refeye *.myeye != | ||
+ | start | ||
+ | -1 .shoot store | ||
+ | stop | ||
+ | |||
+ | ' Gene 5. Reproduce | ||
+ | cond | ||
+ | *.nrg 5000 > | ||
+ | start | ||
+ | 50 .repro store | ||
+ | stop | ||
+ | |||
+ | ' Gene 6. Avoid conspecifics | ||
+ | cond | ||
+ | *.refeye *.myeye = | ||
+ | start | ||
+ | mult 180 | ||
+ | stop | ||
+ | |||
+ | 'Gene 9. Get rid of that waste | ||
+ | cond | ||
+ | *.waste 100 > | ||
+ | start | ||
+ | 1 .backshot store | ||
+ | -4 .shoot store | ||
+ | *.waste .shootval store | ||
+ | stop | ||
+ | |||
+ | ' Gene 10. Perform the rotation | ||
+ | cond | ||
+ | start | ||
+ | .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 11. slide to the side. | ||
+ | cond | ||
+ | *.aimdx 0 != | ||
+ | *.aimdx 180 != | ||
+ | start | ||
+ | *.aimdx 10 div .dx store | ||
+ | stop | ||
+ | |||
+ | end | ||
+ | </pre> | ||
===simplebot19.txt=== | ===simplebot19.txt=== | ||
− | <pre></pre> | + | <pre> |
+ | ' Simplebot V2.3 | ||
+ | ' Gene 7 wide search 1 | ||
+ | cond | ||
+ | *.eye1 *.eye5 > | ||
+ | start | ||
+ | mult -140 | ||
+ | stop | ||
+ | |||
+ | ' Gene 8 wide search 2 | ||
+ | cond | ||
+ | *.eye9 *.eye5 > | ||
+ | start | ||
+ | mult 140 | ||
+ | stop | ||
+ | |||
+ | ' Gene1. Simple search pattern. | ||
+ | cond | ||
+ | *.eye4 *.eye6 > | ||
+ | start | ||
+ | mult -35 | ||
+ | stop | ||
+ | |||
+ | ' Gene2. Simple search pattern part 2 | ||
+ | cond | ||
+ | *.eye6 *.eye4 > | ||
+ | start | ||
+ | mult 35 | ||
+ | stop | ||
+ | |||
+ | ' Gene 3. Move forward | ||
+ | cond | ||
+ | *.vel 40 < | ||
+ | *.refeye *.myeye != | ||
+ | start | ||
+ | 40 *.vel sub 2 div .up store | ||
+ | stop | ||
+ | |||
+ | ' Gene 4. Shoot the food | ||
+ | cond | ||
+ | *.eye5 40 > | ||
+ | *.refeye *.myeye != | ||
+ | start | ||
+ | -1 .shoot store | ||
+ | stop | ||
+ | |||
+ | ' Gene 5. Reproduce | ||
+ | cond | ||
+ | *.nrg 5000 > | ||
+ | *.eye5 40 < | ||
+ | start | ||
+ | 50 .repro store | ||
+ | stop | ||
+ | |||
+ | ' Gene 6. Avoid conspecifics | ||
+ | cond | ||
+ | *.refeye *.myeye = | ||
+ | start | ||
+ | mult 180 | ||
+ | stop | ||
+ | |||
+ | 'Gene 9. Get rid of that waste | ||
+ | cond | ||
+ | *.waste 100 > | ||
+ | start | ||
+ | 1 .backshot store | ||
+ | -4 .shoot store | ||
+ | *.waste .shootval store | ||
+ | stop | ||
+ | |||
+ | ' Gene 10. Perform the rotation | ||
+ | cond | ||
+ | start | ||
+ | .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 11. slide to the side. | ||
+ | cond | ||
+ | *.aimdx 0 != | ||
+ | *.aimdx 180 != | ||
+ | start | ||
+ | *.aimdx 10 div .dx store | ||
+ | stop | ||
+ | |||
+ | end | ||
+ | </pre> | ||
===simplebot20.txt=== | ===simplebot20.txt=== | ||
− | <pre></pre> | + | <pre> |
+ | Simplebot V2.3 | ||
+ | |||
+ | � Gene 12 tie to parent | ||
+ | cond | ||
+ | *.robage 0 = | ||
+ | start | ||
+ | .tie inc | ||
+ | stop | ||
+ | |||
+ | � Gene 13 sever tie to parent | ||
+ | cond | ||
+ | *.robage 1 = | ||
+ | start | ||
+ | .deltie inc | ||
+ | stop | ||
+ | |||
+ | ' Gene 7 wide search 1 | ||
+ | cond | ||
+ | *.eye1 *.eye5 > | ||
+ | start | ||
+ | mult -140 | ||
+ | stop | ||
+ | |||
+ | ' Gene 8 wide search 2 | ||
+ | cond | ||
+ | *.eye9 *.eye5 > | ||
+ | start | ||
+ | mult 140 | ||
+ | stop | ||
+ | |||
+ | ' Gene1. Simple search pattern. | ||
+ | cond | ||
+ | *.eye4 *.eye6 > | ||
+ | start | ||
+ | mult -35 | ||
+ | stop | ||
+ | |||
+ | ' Gene2. Simple search pattern part 2 | ||
+ | cond | ||
+ | *.eye6 *.eye4 > | ||
+ | start | ||
+ | mult 35 | ||
+ | stop | ||
+ | |||
+ | ' Gene 3. Move forward | ||
+ | cond | ||
+ | *.vel 40 < | ||
+ | *.refeye *.myeye != | ||
+ | start | ||
+ | 40 *.vel sub 2 div .up store | ||
+ | stop | ||
+ | |||
+ | ' Gene 4. Shoot the food | ||
+ | cond | ||
+ | *.eye5 40 > | ||
+ | *.refeye *.myeye != | ||
+ | start | ||
+ | -1 .shoot store | ||
+ | stop | ||
+ | |||
+ | ' Gene 6. Avoid conspecifics | ||
+ | cond | ||
+ | *.refeye *.myeye = | ||
+ | start | ||
+ | mult 180 | ||
+ | stop | ||
+ | |||
+ | � Gene 14 rotate back and continue feeding | ||
+ | cond | ||
+ | *50 0 > | ||
+ | start | ||
+ | mult 628 | ||
+ | 50 dec | ||
+ | stop | ||
+ | |||
+ | ' Gene 5. Reproduce | ||
+ | cond | ||
+ | *.nrg 5000 > | ||
+ | start | ||
+ | 50 .repro store | ||
+ | mult 628 | ||
+ | 50 inc | ||
+ | |||
+ | stop | ||
+ | |||
+ | |||
+ | |||
+ | 'Gene 9. Get rid of that waste | ||
+ | cond | ||
+ | *.waste 100 > | ||
+ | start | ||
+ | 1 .backshot store | ||
+ | -4 .shoot store | ||
+ | *.waste .shootval store | ||
+ | stop | ||
+ | |||
+ | ' Gene 10. Perform the rotation | ||
+ | cond | ||
+ | start | ||
+ | .aimdx store | ||
+ | stop | ||
+ | |||
+ | ' Gene 11. slide to the side. | ||
+ | cond | ||
+ | *.aimdx 0 != | ||
+ | *.aimdx 180 != | ||
+ | start | ||
+ | *.aimdx 10 div .dx store | ||
+ | stop | ||
+ | |||
+ | end | ||
+ | </pre> | ||
+ | |||
+ | [[Category:Bottype]] |
Latest revision as of 18:03, 13 February 2014
Contents
- 1 simplebot1.txt
- 2 simplebot2.txt
- 3 simplebot3.txt
- 4 simplebot4.txt
- 5 simplebot5.txt
- 6 simplebot6.txt
- 7 simplebot7.txt
- 8 simplebot8.txt
- 9 simplebot9.txt
- 10 simplebot10.txt
- 11 simplebot11.txt
- 12 simplebot12.txt
- 13 simplebot13.txt
- 14 simplebot14.txt
- 15 simplebot15.txt
- 16 simplebot16.txt
- 17 simplebot17.txt
- 18 simplebot18.txt
- 19 simplebot19.txt
- 20 simplebot20.txt
simplebot1.txt
'Simplebot 'Gene1. Simple search pattern. cond *.eye3 *.eye5 > start -25 .aimdx store stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start 25 .aimdx store stop ' Gene 3. Move forward cond start 5 .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store stop end
simplebot2.txt
' Simplebot 1 ' Gene1. Simple search pattern. cond *.eye3 *.eye5 > start -25 .aimdx store stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start 25 .aimdx store stop ' Gene 3. Move forward cond start 5 .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop
simplebot3.txt
' Simplebot 1 ' Gene1. Simple search pattern. cond *.eye3 *.eye5 > start -25 .aimdx store stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start 25 .aimdx store stop ' Gene 3. Move forward cond start 5 .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye 6 = *.eye5 0 > start 180 .aimdx store stop end
simplebot4.txt
' Simplebot 1 ' Gene1. Simple search pattern. cond *.eye3 *.eye5 > start -25 .aimdx store stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start 25 .aimdx store stop ' Gene 3. Move forward cond *.vel 30 < start 5 .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye 6 = *.eye5 0 > start 180 .aimdx store stop end
simplebot5.txt
' Simplebot 1 ' Gene1. Simple search pattern. cond *.eye3 *.eye5 > start -25 .aimdx store stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start 25 .aimdx store stop ' Gene 3. Move forward cond *.vel 30 < start 30 *.vel sub .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye 6 = *.eye5 0 > start 180 .aimdx store stop end
simplebot6.txt
' Simplebot 1 ' Gene1. Simple search pattern. cond *.eye3 *.eye5 > start -25 .aimdx store stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start 25 .aimdx store stop ' Gene 3. Move forward cond *.vel 30 < *.numties 0 = start 30 *.vel sub .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye 6 = *.eye5 0 > start 180 .aimdx store stop end
simplebot7.txt
simplebot8.txt
' Simplebot 1 ' Gene1. Simple search pattern. cond *.eye3 *.eye5 > start -25 .aimdx store stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start 25 .aimdx store stop ' Gene 3. Move forward cond *.vel 30 < *.numties 0 = start 30 *.vel sub .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye 5 = start 180 .aimdx store stop end
simplebot9.txt
' Simplebot 1 ' Gene1. Simple search pattern. cond *.eye3 *.eye5 > start -25 .aimdx store stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start 25 .aimdx store stop ' Gene 3. Move forward cond *.vel 30 < *.numties 0 = *.refeye 5 != start 30 *.vel sub .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye 5 = start 180 .aimdx store stop end
simplebot10.txt
' Simplebot 1 ' Gene1. Simple search pattern. cond *.eye3 *.eye5 > start -25 .aimdx store stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start 25 .aimdx store stop ' Gene 3. Move forward cond *.vel 30 < *.refeye 5 != start 30 *.vel sub 2 div .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye 5 = start 180 .aimdx store stop end
simplebot11.txt
' Simplebot 1 ' Gene1. Simple search pattern. cond *.eye3 *.eye5 > start -25 .aimdx store stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start 25 .aimdx store stop ' Gene 3. Move forward cond *.vel 30 < *.refeye 5 != start 30 *.vel sub 2 div .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye 5 = start 180 .aimdx store stop ' Gene 7 wide search 1 cond *.eye1 *.eye5 > start -100 .aimdx store stop ' Gene 8 wide search 2 cond *.eye9 *.eye5 > start 100 .aimdx store stop end
simplebot12.txt
' Simplebot 1 ' Gene1. Simple search pattern. cond *.eye3 *.eye5 > start -25 .aimdx store stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start 25 .aimdx store stop ' Gene 3. Move forward cond *.vel 30 < *.refeye 9 != start 30 *.vel sub 2 div .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye 9 = start 180 .aimdx store stop ' Gene 7 wide search 1 cond *.eye1 *.eye5 > start -100 .aimdx store stop ' Gene 8 wide search 2 cond *.eye9 *.eye5 > start 100 .aimdx store stop end
simplebot13.txt
' Simplebot 1 ' Gene 7 wide search 1 cond *.eye1 *.eye5 > start -100 .aimdx store stop ' Gene 8 wide search 2 cond *.eye9 *.eye5 > start 100 .aimdx store stop ' Gene1. Simple search pattern. cond *.eye3 *.eye5 > start -25 .aimdx store stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start 25 .aimdx store stop ' Gene 3. Move forward cond *.vel 30 < *.refeye 9 != start 30 *.vel sub 2 div .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye 9 = start 180 .aimdx store stop end
simplebot14.txt
' Simplebot 1 ' Gene 7 wide search 1 cond *.eye1 *.eye5 > start mult -100 stop ' Gene 8 wide search 2 cond *.eye9 *.eye5 > start mult 100 stop ' Gene1. Simple search pattern. cond *.eye3 *.eye5 > start mult -25 stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start mult 25 stop ' Gene 3. Move forward cond *.vel 30 < *.refeye 9 != start 30 *.vel sub 2 div .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye 9 = start mult 180 stop ' Gene 9. rotate cond start .aimdx store stop end
simplebot15.txt
' Simplebot 1 ' Gene 7 wide search 1 cond *.eye1 *.eye5 > start mult -100 stop ' Gene 8 wide search 2 cond *.eye9 *.eye5 > start mult 100 stop ' Gene1. Simple search pattern. cond *.eye3 *.eye5 > start mult -25 stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start mult 25 stop ' Gene 3. Move forward cond *.vel 30 < *.refeye 10 != start 30 *.vel sub 2 div .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > *.eye5 40 < start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye 10 = start mult 180 stop ' Gene 9. rotate cond start .aimdx store stop end
simplebot16.txt
' Simplebot 1 ' Gene 7 wide search 1 cond *.eye1 *.eye5 > start mult -100 stop ' Gene 8 wide search 2 cond *.eye9 *.eye5 > start mult 100 stop ' Gene1. Simple search pattern. cond *.eye3 *.eye5 > start mult -25 stop ' Gene2. Simple search pattern part 2 cond *.eye7 *.eye5 > start mult 25 stop ' Gene 3. Move forward cond *.vel 30 < *.refeye 9 != start 30 *.vel sub 2 div .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > start -1 .shoot store stop ' Gene 6. Avoid conspecifics cond *.refeye 9 = start mult 180 stop ' Gene 12 cond *50 0 > start mult 628 50 dec stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store mult 628 50 inc stop ' Gene 9. rotate cond start .aimdx store stop ' Gene10. Tie to parent cond *.robage 0 = start .tie inc stop ' Gene 11. Sever tie to parent cond *.robage 1 = start .deltie inc stop end
simplebot17.txt
' Simplebot V2.3 ' Gene 7 wide search 1 cond *.eye1 *.eye5 > start mult -140 stop ' Gene 8 wide search 2 cond *.eye9 *.eye5 > start mult 140 stop ' Gene1. Simple search pattern. cond *.eye4 *.eye5 > start mult -35 stop ' Gene2. Simple search pattern part 2 cond *.eye6 *.eye5 > start mult 35 stop ' Gene 3. Move forward cond *.vel 40 < *.refeye 9 != start 40 *.vel sub 2 div .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > *.refeye *.myeye != start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye 9 = start mult 180 stop 'Gene 9. Get rid of that waste cond *.waste 100 > start -4 .shoot store *.waste .shootval store stop ' Gene 10. Perform the rotation cond start .aimdx store stop ' Gene 11. slide to the side. cond *.aimdx 0 != *.aimdx 180 != start *.aimdx 10 div .dx store stop end
simplebot18.txt
' Simplebot V2.3 ' Gene 7 wide search 1 cond *.eye1 *.eye5 > start mult -140 stop ' Gene 8 wide search 2 cond *.eye9 *.eye5 > start mult 140 stop ' Gene1. Simple search pattern. cond *.eye4 *.eye6 > start mult -35 stop ' Gene2. Simple search pattern part 2 cond *.eye6 *.eye4 > start mult 35 stop ' Gene 3. Move forward cond *.vel 40 < *.refeye *.myeye != start 40 *.vel sub 2 div .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > *.refeye *.myeye != start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye *.myeye = start mult 180 stop 'Gene 9. Get rid of that waste cond *.waste 100 > start 1 .backshot store -4 .shoot store *.waste .shootval store stop ' Gene 10. Perform the rotation cond start .aimdx store stop ' Gene 11. slide to the side. cond *.aimdx 0 != *.aimdx 180 != start *.aimdx 10 div .dx store stop end
simplebot19.txt
' Simplebot V2.3 ' Gene 7 wide search 1 cond *.eye1 *.eye5 > start mult -140 stop ' Gene 8 wide search 2 cond *.eye9 *.eye5 > start mult 140 stop ' Gene1. Simple search pattern. cond *.eye4 *.eye6 > start mult -35 stop ' Gene2. Simple search pattern part 2 cond *.eye6 *.eye4 > start mult 35 stop ' Gene 3. Move forward cond *.vel 40 < *.refeye *.myeye != start 40 *.vel sub 2 div .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > *.refeye *.myeye != start -1 .shoot store stop ' Gene 5. Reproduce cond *.nrg 5000 > *.eye5 40 < start 50 .repro store stop ' Gene 6. Avoid conspecifics cond *.refeye *.myeye = start mult 180 stop 'Gene 9. Get rid of that waste cond *.waste 100 > start 1 .backshot store -4 .shoot store *.waste .shootval store stop ' Gene 10. Perform the rotation cond start .aimdx store stop ' Gene 11. slide to the side. cond *.aimdx 0 != *.aimdx 180 != start *.aimdx 10 div .dx store stop end
simplebot20.txt
Simplebot V2.3 � Gene 12 tie to parent cond *.robage 0 = start .tie inc stop � Gene 13 sever tie to parent cond *.robage 1 = start .deltie inc stop ' Gene 7 wide search 1 cond *.eye1 *.eye5 > start mult -140 stop ' Gene 8 wide search 2 cond *.eye9 *.eye5 > start mult 140 stop ' Gene1. Simple search pattern. cond *.eye4 *.eye6 > start mult -35 stop ' Gene2. Simple search pattern part 2 cond *.eye6 *.eye4 > start mult 35 stop ' Gene 3. Move forward cond *.vel 40 < *.refeye *.myeye != start 40 *.vel sub 2 div .up store stop ' Gene 4. Shoot the food cond *.eye5 40 > *.refeye *.myeye != start -1 .shoot store stop ' Gene 6. Avoid conspecifics cond *.refeye *.myeye = start mult 180 stop � Gene 14 rotate back and continue feeding cond *50 0 > start mult 628 50 dec stop ' Gene 5. Reproduce cond *.nrg 5000 > start 50 .repro store mult 628 50 inc stop 'Gene 9. Get rid of that waste cond *.waste 100 > start 1 .backshot store -4 .shoot store *.waste .shootval store stop ' Gene 10. Perform the rotation cond start .aimdx store stop ' Gene 11. slide to the side. cond *.aimdx 0 != *.aimdx 180 != start *.aimdx 10 div .dx store stop end