Darwinbots Forum
Bots and Simulations => Bot Tavern => Topic started by: spork22 on September 19, 2015, 09:44:02 AM
-
I'm thinking of making a bot that will search for food in a Fibonacci Spiral or "golden spiral".
-
Make it rotate quickly in the beginning and slow the rotation over time while keeping forward speed constant. Can not do the math in my head for the exact numbers but you should get something like a spiral.
Ex:
Set memory location 999 to 32000 at robot age zero
Then do *999 10 mult 15 div 999 store
Then do *999 50 div .aimdx store, etc.
Repeat each cycle
-
Okay, thanks. I'll probably have to reverse that because it is doing a reverse spiral, as in, it starts from the edge of the spiral and goes inwards.
-
Okay, thanks. I'll probably have to reverse that because it is doing a reverse spiral, as in, it starts from the edge of the spiral and goes inwards.
that'd be quite powerful.
Oh if your thinking of strange shapes for bots, I did come up with a possible bot which assigns various jobs to each bot. It starts with one colony leader, it has very short range vision in most spots, then ridiculously long vision in a thin forward spot. It then waits for an enemy to show up in the wedge, reproduces a bot between it and the enemy, ties to its new child. Performs fixpos on itself, then increases the tie length to the distance the enemy is away. It turns till it finds an enemy this starting leader does. once the child has killed everything in its site, the child detaches, and then somehow the child becomes, or is replaced by another colony leader. The process then repeats.
This would create a very long range hunter.
-
So it creates a conga line of children to it's prey?
-
So it creates a conga line of children to it's prey?
Sorry about late reply.
Pretty much. It creates a conga line which eats, then the end of the conga becomes a new 'base' to create conga lines.
-
All right, I've figured out a pretty efficient base for making "conga lines"
I'm trying to make a bot like a slime mold with it.
Basically:
cond
start
50 .repro store
stop
cond
*.refeye *.myeye =
start
628 .aimdx store
stop
Not sure how well it would work for you, but it works for what I'm trying to do.