module ShintyokuDoudesuka

Constants

VERSION

Public Class Methods

clear() click to toggle source
# File lib/shintyoku_doudesuka.rb, line 47
def clear
  print "\r#{' '*70}"
end
run() click to toggle source
# File lib/shintyoku_doudesuka.rb, line 51
def run
  ta = Talk.new
  until ta.finished?
    clear
    print "\r"

    ta.recover if rand(5) > 2
    ta.raise_problem if rand(10) > 7
    ta.succeed
    ta.comment
    sleep 1
  end
  puts ""
  puts "できました"
end

Public Instance Methods

run() click to toggle source
# File lib/shintyoku_doudesuka.rb, line 69
def run
  Talk.run
end