# Re: Itinerary for a Traveling Salesman (#142)

**URL:** <https://www.ruby-forum.com/t/re-itinerary-for-a-traveling-salesman-142/116620>\
**Category:** Ruby\
**Created:** [October 8, 2007, 1:20am UTC](https://www.ruby-forum.com/t/re-itinerary-for-a-traveling-salesman-142/116620 "2007-10-08T01:20:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jameskelly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3ab097/32.png) [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Post date:** [October 8, 2007, 1:20am UTC](https://www.ruby-forum.com/t/re-itinerary-for-a-traveling-salesman-142/116620/1 "2007-10-08T01:20:30Z")

</div>

On Oct 7, 2007, at 12:28 PM, James Edward G. II wrote:

> > \<definitions of Grid and draw\_itin removed - see main solution below\>  
> > if n%2==0  
> > draw\_itin(itin, “#{n}x#{n}tour2.jpg”)
> 
> I believe there’s a typo in the above. Shouldn’t it be:
> 
> (n-1).step(2, -2) do |y| # I removed a .
> 
> ?
> 
> James Edward G. II

Yes, thank you. I seem to recall accidentally striking a key with my  
cursor somewhere in the middle of Ruby code on more than one occasion; I  
guess that happened, and I failed to notice it.
