# File lib/libttc.rb, line 168 def layout out_string = "" @positions.keys.sort.each do |position| out_string << sprintf("%s touches ", @positions[position]) @positions[position].neighbours.each do |neighbour| out_string << sprintf("%s, ", neighbour) end out_string << sprintf("\n") end out_string end