Re: Itinerary for a Traveling Salesman (#142)

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.