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

Domino100

by Amitabh Verma

Status: Passed
Results: 400044 (cyc: 2, node: 100)
CPU Time: 0.079
Score: 80008.9
Submitted at: 2010-11-16 23:45:56 UTC
Scored at: 2010-11-16 23:47:07 UTC

Current Rank: 2530th (Highest: 2155th )

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)
if R<48
    R=43;
end
t = round(maxThrottle.*d/(30/R+R) * [1 1 -ones(1,4) zeros(1,3)]);
thrustRow = t(1,:);
thrustCol = t(2,:);