Bots and Simulations > Bot Tavern

Plausible tactic?

<< < (2/2)

ashton15:
Once when i was mucking arround with a simple tiebot in a sim which had no costs and changed


--- Code: ---cond
start
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
.up inc
stop

to

[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']cond
start
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
.dx inc
stop

--- End code ---

and it worked really well, in the end though I never implemented it because I went for a spinning approach instead.

Houshalter:
one store is equal to ten inc/decs so be carefull you only use them when the number you want to store is less than 10.

PhiNotPi:
I made a crab-like-bot at one point in time.  It was animal minimalis edited so that instead of spinning while looking for food, it moved sideways.  It wasn't a complete crab, because it still moved foward when it found food.  I would think that moving sideways towards food would be difficult because, while sideways, you would not be able to keep an eye on the food.

bacillus:
That shouldn't be an issue...you can redefine the width and orientation of the eyes using .eyeXwidth and .eyeXdir .

PhiNotPi:
Here is A_Minimalis modified to become a crab.

--- Code: ---'Animal_Minimalis
'By: Nums
'Modified By: PhiNotPi
'Good for mutation sims and for
'newbies to see how a basic bot works.
'Contains everything necessary for it
'to survive and reproduce.
'Also good to demonstrate a crab-bot.

' Gene 0 Crab Form
cond
*.robage 0 =
start
314 .aimshoot store
314 .eye5dir store
314 .eye1dir store
314 .eye2dir store
314 .eye3dir store
314 .eye4dir store
314 .eye6dir store
314 .eye7dir store
314 .eye8dir store
314 .eye9dir store
stop

' Gene 1 Food Finder
cond
 *.eye5 0 >
 *.refeye *.myeye !=
start
 *.refveldx .up store
 *.refvelup 30 add .sx store
stop

' Gene 2 Eat Food
cond
 *.eye5 50 >
 *.refeye *.myeye !=
start
-1 .shoot store
 *.refvelup .sx store
stop

' Gene 3 Avoiding Family
cond
 *.eye5 0 =
 *.refeye *.myeye = or
start
 314 rnd .aimdx store
stop

' Gene 4 Reproduce
cond
 *.nrg 20000 >
start
 10 .repro store
stop

end

--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version