Skip to main content
Removed a typo from the program that didn't seem to matter (but added one character)
Source Link
daniero
  • 18.7k
  • 5
  • 51
  • 78

Ruby 5756

i=0
loop{puts" ".*"*(20*Math.sin(i+=0.1)+20)+?|;sleep 0.05}

Ruby 57

i=0
loop{puts" ".*(20*Math.sin(i+=0.1)+20)+?|;sleep 0.05}

Ruby 56

i=0
loop{puts" "*(20*Math.sin(i+=0.1)+20)+?|;sleep 0.05}
deleted 65 characters in body
Source Link
daniero
  • 18.7k
  • 5
  • 51
  • 78

Ruby 6557

(1..1.0/0).mapi=0
loop{|i|puts"puts" ".*(20*Math.sin(i*0i+=0.1)+20)+?|;sleep 0.05}

Starts creating an infinite array and prints while doing so.

Ruby 65

(1..1.0/0).map{|i|puts" ".*(20*Math.sin(i*0.1)+20)+?|;sleep 0.05}

Starts creating an infinite array and prints while doing so.

Ruby 57

i=0
loop{puts" ".*(20*Math.sin(i+=0.1)+20)+?|;sleep 0.05}
Source Link
daniero
  • 18.7k
  • 5
  • 51
  • 78

Ruby 65

(1..1.0/0).map{|i|puts" ".*(20*Math.sin(i*0.1)+20)+?|;sleep 0.05}

Starts creating an infinite array and prints while doing so.