James Edward Gray II <james / grayproductions.net> writes:

> Begin forwarded message:
>
>> From: Edward <edward / ethelred.org>
>> Date: October 16, 2006 3:23:30 AM CDT
>> To: submission / rubyquiz.com
>> Subject: Please Forward: Ruby Quiz Submission
>> Reply-To: edward / ethelred.org
>>
>> Hi,
>> Here is my submission for Ruby Quiz 98. I'm not sure how well the
>> backtracking works in this version, I might think about that some
>> more.
>>
>> cheers
>> Edward Harman

When I try this solution on the map I've been trying all the solutions
on, this happens:

@.*..
..~..
..^.X

#.*..
..~..
..###

That is, not only does it try to go over the mountain, it manages to
jump a square, jumping straight from the start at (0,0) to the
mountain at (2,2).

The culprit for going over the mountain instead of going through the
forest is almost certainly the manhattan distance, as it is in other
solutions.  I have no idea why it jumps a square.

-- 
s=%q(  Daniel Martin -- martin / snowplow.org
       puts "s=%q(#{s})",s.map{|i|i}[1]       )
       puts "s=%q(#{s})",s.map{|i|i}[1]