Rock-paper-scissors: Difference between revisions
Content added Content deleted
m (→extended, 5 choices: corrected a comment's wording.) |
m (→{{header|Sidef}}: replaced "indexWhere" with "index") |
||
Line 3,979: | Line 3,979: | ||
pi == 'q' && break; |
pi == 'q' && break; |
||
var pChoice = rps. |
var pChoice = rps.index(pi); |
||
if (pChoice == -1) { |
if (pChoice == -1) { |