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

Endeavour

by Victoria

Status: Passed
Results: 402955 (cyc: 1, node: 89)
CPU Time: 0.065
Score: 80591.1
Submitted at: 2010-11-16 21:02:46 UTC
Scored at: 2010-11-16 21:03:13 UTC

Current Rank: 2716th (Highest: 2155th )
Based on: Artful sailor (diff)
Basis for: Combination (diff)

Comments
Please login or create a profile.
Code
function [thrustRow, thrustCol] = solver100(chart, aIndex, bIndex, maxThrottle)

[aby abx]=ind2sub(size(chart),[aIndex; bIndex]);
d = diff([aby abx])';
R=sum(abs(d));
t = round(maxThrottle*d/(20/R+R) * [1 1 -1 -1 -1 -1 0 0 0 0]);
thrustRow = t(1,:);
thrustCol = t(2,:);