title: Ruby (Rock, Paper, Scissors)
body: <p>Hey I am new to ruby and I have sat for a long time trying to find out what I've done wrong in this code, there isn't any error but it isn't giving me my desired output as a normal game of rock paper scissors.
  Here is my code:</p>
  <pre><code>puts &quot;Rock, Paper or Scissors&quot;
  choice = gets.chomp
  cchoice = [&quot;Rock&quot;, &quot;Paper&quot;,&quot;Scissors&quot;]
  comp = rand(1..3)
  won = false
  
  
  puts &quot;Computer chose #{cchoice[comp]}&quot;
  if (choice == &quot;Rock&quot;)
      if (comp == 2)
          won = false
      end
      if (comp == 3)
          won = true
      end
  elsif (choice == &quot;Paper&quot;)
      if (comp == 3)
          won = false
      end
      if (comp == 1)
          won = true
      end
  elsif (choice == &quot;Scissors&quot;)
      if (comp == 1)
          won = false
      end
      if (comp == 2)
          won = true
      end
  else
      puts &quot;I dont know what that means so-&quot;
  end
  
  if (won)
      puts &quot;YOU WON!!!&quot;
  else
      puts &quot;You lost..&quot;
  end
  </code></pre>
  <p>Thanks for any help!</p>