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

Hungry Moose

by Mike Russell

Status: Passed
Results: 400713 (cyc: 1, node: 100)
CPU Time: 0.067
Score: 80142.7
Submitted at: 2010-11-16 23:53:52 UTC
Scored at: 2010-11-16 23:54:17 UTC

Current Rank: 2540th (Highest: 2161st )
Based on: Monitor (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]).*[1.004 0.9997])';
R=sum(abs(d));
R(R<40) = 40;
t = maxThrottle*d/(30/R+R) * [1 1 -1 -0.999 -1 -1 0 0 0];
thrustRow = t(1,:);
thrustCol = t(2,:);