PASO 12: Digamos al jugador que la computadora ganó si el usuario escogió "paper" y la computadora escogió "scissors" .

  • Agregue if and pruebe si la choice es igual a "paper" y computer_choice es igual a "scissors" .
  • Arrastre Set Text . Asigne el comando a result .
  • Cambie la cadena a "Computer wins!" ya que las tijeras le ganan al papel.

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
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)