STEP 7: We need to test all 3 combinations that happen if the player chooses rock. The computer could pick rock, or paper, or scissors! We've already tested rock vs rock, so we will now test rock vs paper.

  • In the most recent if-statement, change the first test value from "yes" to "rock".
  • In the same compound if-statement, change the second test value from "no" to "paper".
  • Change the string in .set_text() to "Computer wins!"

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)