@ -28,10 +28,7 @@ class Tile
end
def rotated
self.class.new(
self.class.new(@id, @raw.reverse.transpose)
@id,
@raw.map {|row| [row].transpose }.reverse.inject(&:zip).map(&:flatten),
)
def flipped