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

Segelflieger

by Alex P.

Status: Passed
Results: 454296 (cyc: 1, node: 98)
CPU Time: 0.064
Score: 90859.3
Submitted at: 2010-11-16 23:58:42 UTC
Scored at: 2010-11-16 23:59:01 UTC

Current Rank: 2952nd (Highest: 2565th )
Based on: thirty miles under sea (diff)

Comments
Alex P.
16 Nov 2010
last -2
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]).*[1.004 0.9997])';
R=sum(abs(d));
t = round(maxThrottle*d/(30/R+R) * [1 1 1 -1 -1 -1 -1 -1 0 0 0 0]);
thrustRow = t(1,:);
thrustCol = t(2,:);