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

Just ship

by Victoria

Status: Passed
Results: 400075 (cyc: 1, node: 100)
CPU Time: 0.057
Score: 80015.1
Submitted at: 2010-11-16 23:59:32 UTC
Scored at: 2010-11-17 00:01:15 UTC

Current Rank: 2531st (Highest: 2161st )
Based on: Just nice ship (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/(30/R+R) * [1 1 -1 -0.999 -1 -1 0.1 0 0]);
thrustRow = t(1,:);
thrustCol = t(2,:);