title: Rock, Paper, Scissor Ruby
body: <p>Error:</p>
  
  <blockquote>
    <p>syntax error, unexpected tIDENTIFIER, expecting end-of-input end whlie
    continue == "N"</p>
  </blockquote>
  
  <p>I checked all the code, but I still don't get it.</p>
  
  <p>Should I add the end code after <code>while continue == "N"</code>?</p>
  
  <pre><code>  begin 
        puts "|===============================================|" 
        puts "|Welcome to Rock Paper Scissors!!!              |"
        puts "|===============================================|"
  
        begin 
          puts "please choose one of the following: R / P / S"
          user_input = gets.chomp.upcase
        end while !["R", "P", "S"].include?(user_input) 
  
  
        com_input = ["R", "P", "S"].sample
  
        puts "You:#{user_input} Com:#{com_input}"
  
        if user_input = "R" &amp;&amp; com_input = "S" || user_input = "S" &amp;&amp; com_input = "P" || user_input = "P" &amp;&amp; com_input = "R"
          puts "Result:You win"  
        elsif com_input = "R" &amp;&amp; user_input = "S" || com_input = "S" &amp;&amp; user_input = "P" || com_input = "P" &amp;&amp; user_input = "R"
          puts "Result:You lose"  
        else
          puts "Result:Draw"  
        end
  
        begin
          puts "Play Again?: Y / N"
          continue = gets.chomp.upcase
        end while !["Y", "N"].include?(continue)
  
      end whlie continue == "N"
      puts "Good Bye! Thanks for playing!"
  </code></pre>