Bots and Simulations > Tips and Tricks

Hibernation

<< < (5/8) > >>

PurpleYouko:

--- Quote from: Numsgil ---A little behind the times aren't we?  

I changed it so that store commands cost energy the moment thye're used.  I believe that was 2.37.  It's what allowed Spanish Conquistador and other short bots to explode in complexity and efficiency.
--- End quote ---
Apparently so.
it's been about 6 months since I had the time to delve into the code and since you joined the programming team, everything has been moving at incredible speed.

Henk:

--- Quote from: Elite ---Here's SWARM SGified:
--- End quote ---

That thing is EVIL

Single-gened bots nowadays are just as good as recent multi-gened ones. Maybe even better...

Numsgil:
Really throws the whole SG league on end doesn't it?  

abyaly:

--- Quote from: Henk ---That thing is EVIL

Single-gened bots nowadays are just as good as recent multi-gened ones. Maybe even better...
--- End quote ---
Why wouldnt they be? Any bot that has an empty stack after the end of each gene can easily be made into an SG.
Step 1:
Convert all conditional operators as follows:
>   -> sub sqr dup div
<   -> sub -1 mult sqr dup div
!=  -> sub dup div
=   -> sub dup div 1 sub abs
Step 2:
Connect all of the gene's conditions with boolean operations.
or   -> add sgn
and -> mult
not  -> 1 sub dup div
xor -> sub dup div
Step 3:
Find every store, inc, or dec command inside the gene.
Multiply the address being modified by the value from step 2.
Step 4:
After doing this to every gene, put everything together into a conditionless gene.

Bots that don't fit the criteria wont work with that algorithm, but with some effort I think those could be converted to SG bots too  

EricL:

--- Quote from: Numsgil ---In 2.4 at least inc and dec are no longer free.  They cost 1 / 10th of a store I believe.
--- End quote ---

In all versions of 2.4, inc and dec cost 1/10th of a store as long as the value on the stack is between 1 and 1000 inclusive.  (0 inc costs nothing,  same with 0 dec).

Beginning with 2.42.3, stores have symmetric behaviour (stores to locations outside 1 to 1000 inclusive cost nothing).  In previous versions of 2.4, any store would cost you, including attempted stores to location 0.

In short, if I understand the concept sufficiently, hybernation should once again work in 2.42.3.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version