main/players/player.rb
def wait_time(times, seconds)
    bar = ['.', '..', '...', '..']
    i = 0
    times.times do
      puts "\r \e[A \e[K#{bar[i % bar.length]}"
      sleep(seconds)
      i += 1
    end
  end
# Wait time method with a little terminal animation
Wait time method with a little terminal animation
Wait time method with a little terminal animation
def wait_time(times, seconds)
    bar = ['.', '..', '...', '..']
    i = 0
    times.times do
      puts "\r \e[A \e[K#{bar[i % bar.length]}"
      sleep(seconds)
      i += 1
    end
  end
def wait_time ( times , seconds ) bar = [ '.' , '..' , '...' , '..' ] i = 0 times . times do puts "\r \e[A \e[K#{bar[i % bar.length]}" sleep ( seconds ) i += 1 end end
Wait time method with a little terminal animation
Wait time method with a little terminal animation
times
seconds