Sha256: 56dda773652fbb856013aee7e0fcebef8b13e94c27237e4605c2f6142dfcca27
Contents?: true
Size: 285 Bytes
Versions: 1
Compression:
Stored size: 285 Bytes
Contents
class EnjoyMarkov def self.start!(supinf=20) @@x = 0 loop do @@x += [-1, 1].sample # TODO: use prefer randmGen raise 'ops.. ;(' if supinf == @@x.abs p %!#{"\s" * supinf}|#{"\s" * supinf}!.tap { |s| s[@@x + supinf] = '*' } sleep 0.05 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enjoy_markov-0.0.1 | lib/enjoy_markov.rb |