title: How to restart script from the beginning?
body: <p>I decided to make a number-guessing game. Here is the code.</p>
  
  <pre><code>print "Guess a number from 1-20. You have 5 guesses!"
  guess1=gets.chomp
  guess1=guess1.to_i
  random=1 + rand(20)
  random=random.to_i
  if guess1 == random
    puts "Correct! You win!!!"
    sleep(5)
    Kernel.exit
  elsif guess1 &gt; random
    puts "Wrong! Too high. Try again!"
  else
    puts "Wrong! Too low. Try again!"
  end
  guess2=gets.chomp
  guess2=guess2.to_i
  if guess2 == random
    puts "Correct! You win!!!"
    sleep(5)
    Kernel.exit
  elsif guess2 &gt; random
    puts "Wrong! Too high. Try again!"
  else
    puts "Wrong! Too low. Try again!"
  end
  guess3=gets.chomp
  guess3=guess3.to_i
  if guess3 == random
    puts "Correct! You win!!!"
    sleep(5)
    Kernel.exit
  elsif guess3 &gt; random
    puts "Wrong! Too high. Try again!"
  else
    puts "Wrong! Too low. Try again!"
  end
  guess4=gets.chomp
  guess4=guess4.to_i
  if guess4 == random
    puts "Correct! You win!!!"
    sleep(5)
    Kernel.exit
  elsif guess4 &gt; random
    puts "Wrong! Too high. Try again!"
  else
    puts "Wrong! Too low. Try again!"
  end
  guess5=gets.chomp
  guess5=guess5.to_i
  if guess5 == random
    puts "Correct! You win!!!"
    sleep(5)
    Kernel.exit
  elsif guess5 &gt; random
    puts "Wrong! Too high. Game over!"
    sleep(5)
    Kernel.exit
  else
    puts "Wrong! Too low. Game over!"
    sleep(5)
    Kernel.exit
  end
  </code></pre>
  
  <p>How would I add a try-again option at the end that would restart the game?</p>