Winner Andre Fioravanti (Lost Sailor Final5)
by Amitabh Verma
Status: Passed Results: 400716 (cyc: 2, node: 100) CPU Time: 0.079 Score: 80143.3 Submitted at: 2010-11-16 23:38:01 UTC Scored at: 2010-11-16 23:38:46 UTC
Current Rank: 2542nd (Highest: 2151st ) Basis for: Super Cook (diff) Basis for: Cheap shots (diff) Basis for: Output?! (diff) ...and 5 others.
function [thrustRow, thrustCol] = amit_brad(chart, aIndex, bIndex, maxThrottle) [aby abx]=ind2sub(size(chart),[aIndex; bIndex]); d = (diff([aby abx]).*[1.004 0.9996])'; R=norm(d,1) if R<40 R=40; end t = round(maxThrottle.*d/(30/R+R) * [1 1 -ones(1,4) zeros(1,3)]); thrustRow = t(1,:); thrustCol = t(2,:);