Sha256: e8eb867ef70e820c12bc1c3443a66ab54d077d1f198a66238c320b11beb43209
Contents?: true
Size: 507 Bytes
Versions: 1
Compression:
Stored size: 507 Bytes
Contents
class EnjoyMarkov class << self def start!(supinf=20) @@x = 0 loop do @@x += [-1, 1].sample # TODO: use prefer randmGen raise 'ops.. ;(' if supinf == @@x.abs puts "#{wall}#{space * supinf}#{axis}#{space * supinf}#{wall}".tap { |s| s[@@x + supinf + 1] = point } sleep 0.05 end end private def axis; "|" end def wall; "|" end def point; "\e[31m*\e[0m" end def space; "\s" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enjoy_markov-0.0.2 | lib/enjoy_markov.rb |