STEP 15: When random_choice is 3, computer picks "scissors". We'll store this to figure out which player wins.

  • Click LOGIC, go to and drag out String Variable.
  • Drop it inside the if-statement, below .Sprite().
  • Change the variable name to computer_choice and change the value to "scissors".

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)