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

Numbers...

by Christian Ylämäki

Status: Passed
Results: 400671 (cyc: 1, node: 98)
CPU Time: 0.059
Score: 80134.3
Submitted at: 2010-11-16 23:56:55 UTC
Scored at: 2010-11-16 23:57:05 UTC

Current Rank: 2538th (Highest: 2162nd )
Based on: RandomCat002 (diff)
Basis for: Numbers...2 (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=max(R,48);
t = round(maxThrottle.*d/(48/R+R) * [1 1 -ones(1,4) zeros(1,3)]);
thrustRow = t(1,:);
thrustCol = t(2,:);