Bots and Simulations > Bot Tavern

Fibonacci

(1/2) > >>

spork22:
I'm thinking of making a bot that will search for food in a Fibonacci Spiral or "golden spiral".

Botsareus:
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

spork22:
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.

spike43884:

--- Quote from: spork22 on September 20, 2015, 01:37:51 PM ---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.

--- End quote ---
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.

spork22:
So it creates a conga line of children to it's prey?

Navigation

[0] Message Index

[#] Next page

Go to full version