Finish 2010-11-17 12:00:00 UTC

Super Cook

by Mike Russell

Status: Passed
Results: 400716 (cyc: 1, node: 99)
CPU Time: 0.091
Score: 80143.3
Submitted at: 2010-11-16 23:42:25 UTC
Scored at: 2010-11-16 23:44:19 UTC

Current Rank: 2543rd (Highest: 2155th )
Based on: Nexus100 (diff)
Basis for: Super Nick (diff)
Basis for: sc30 (diff)

Comments
Please login or create a profile.
Code
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)
R(R<40) = 40;
t = round(maxThrottle.*d/(30/R+R) * [1 1 -ones(1,4) zeros(1,3)]);
thrustRow = t(1,:);
thrustCol = t(2,:);