Guest User

Untitled

a guest
May 13th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.18 KB | None | 0 0
  1. File.readlines("path.pl").each do |p|
  2.   x =~ /\((.)(\d[\d]?), (.)(\d)/
  3.   if $1
  4.     puts "path(cell(#{$1[0]-96}, #{$2}), cell(#{$3[0]-96}, #{$4}))"
  5.   else
  6.     puts p
  7.   end
  8. end
Add Comment
Please, Sign In to add comment