Icon representing a recipe

Recipe: TvdL Be careful with that axe Eugene

created by Timo van der Laan

Profile


Name
TvdL Be careful with that axe Eugene
ID
48157
Shared with
Public
Parent
None
Children
Created on
February 11, 2014 at 20:42 PM UTC
Updated on
February 11, 2014 at 20:42 PM UTC
Description

One of these days I am going to cut you into little pieces. Sometimes it works, sometimes it doesnt. Feel free to change the stepsize.

Best for


Code


-- Basic idea from Spdenne stepsize=3 save.Quicksave(3) curscore=current.GetEnergyScore() for j=2,2+stepsize-1 do for i=j,structure.GetCount(),stepsize do structure.InsertCut(i) end structure.WiggleAll(12,true,true) for i=j,structure.GetCount(),stepsize do structure.DeleteCut(i) end structure.WiggleAll(20,true,true) newscore=current.GetEnergyScore() if curscore > newscore then save.Quickload(3) else print( "Gained: ", newscore-curscore) curscore=newscore save.Quicksave(3) end end

Comments