# Fwd: Please Forward: Ruby Quiz Submission

**URL:** <https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229058>\
**Category:** Ruby\
**Created:** [October 16, 2006, 3:20pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229058 "2006-10-16T15:20:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [October 16, 2006, 3:20pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229058/1 "2006-10-16T15:20:37Z")

</div>

Begin forwarded message:

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [October 16, 2006, 4:21pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229058/2 "2006-10-16T16:21:45Z")

</div>

James Edward G. II [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

> > 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.
