title: In a switch case statement, it says "duplicate case value" comes up as an error. Anyone know why?
body: <p>I am working on a rock paper scissors program, but this time the computer chooses rock half the time, scissors a third of the time, and paper only one sixth of the time. The way I did this was I enumerated six possible computer choice values:</p>
  
  <pre><code>enum choicec {rock1, rock2, rock3, scissors1, scissors2, paper};
  choicec computer;
  </code></pre>
  
  <p>But then, after the computer makes its choice, I have to convert these enumerated values to either rock, paper, or scissors. I did this using a switch-case statement:</p>
  
  <pre><code>switch(computer) {
          case rock1 || rock2 || rock3:
              c = 1;
              break;
          case scissors1 || scissors2: //ERROR!
              c = 3;
              break;
          case paper:
              c = 2;
              break;
      }
  </code></pre>
  
  <p>one is rock, two is paper, and three is scissors. However, on the line where I have error written in as a comment, it gives me this error: [Error] duplicate case value.</p>
  
  <p>I'm not sure why.
  Any ideas?</p>