Exercise - Create a rock, paper, scissors game

Completed

In this exercise, you build a rock, paper, scissors game that uses conditional logic to determine the winner against a computer opponent.

Launch the exercise and follow the instructions.

Button that launches the rock, paper, scissors exercise in a new browser tab.

Extend with GitHub Copilot

After completing the exercise, try extending your game with GitHub Copilot:

  • Ask Copilot to add a score tracker that keeps count of wins, losses, and ties.
  • Ask Copilot to add input validation so the program handles unexpected entries gracefully.

Review each suggestion carefully before accepting it—make sure you understand what the code does and that it behaves the way you expect.