pastebin

Paste Search Dynamic
Recent pastes
each slice
  1. while m=gets
  2.         r="d"
  3.         ((0..8).to_a+[0,3,6,1,4,7,2,5,8,0,4,8,2,4,6]).map{|e| m[e]}.each_slice(3){|a,b,c|
  4.                 r=(a==b && b==c && a!="s")?a:r
  5.         }
  6.         puts r
  7. end
Parsed in 0.007 seconds