Advanced running object
Posted: Thu Nov 27, 2003 8:56 pm
Directions:
1)Make a board with random walls all over the place
2)Put a bunch of objects on the board with this code:
[start of code]
@scared
#cycle 1
:loop
/opp seek
#if alligned if blocked e /rnd
#if alligned if blocked w /rnd
#if alligned if blocked n /rnd
#if alligned if blocked s /rnd
#if blocked w if blocked n /rnd
#if blocked w if blocked s /rnd
#if blocked e if blocked n /rnd
#if blocked e if blocked s /rnd
#loop
:touch
#become red fake
[end of code]
Watch as you see how hard some of them are to catch because of this advanced AI.
1)Make a board with random walls all over the place
2)Put a bunch of objects on the board with this code:
[start of code]
@scared
#cycle 1
:loop
/opp seek
#if alligned if blocked e /rnd
#if alligned if blocked w /rnd
#if alligned if blocked n /rnd
#if alligned if blocked s /rnd
#if blocked w if blocked n /rnd
#if blocked w if blocked s /rnd
#if blocked e if blocked n /rnd
#if blocked e if blocked s /rnd
#loop
:touch
#become red fake
[end of code]
Watch as you see how hard some of them are to catch because of this advanced AI.