Challenge: Play Rock, Paper, Scissors

It's your turn to write some TypeScript!

Intro to TypeScript

It's time to experience TypeScript in action.

For this challenge, you will be tasked with implementing the remaining code of a Rock, Paper, Scissors game.

Take a look at the code in the editor. You'll see three files:

  • index.html: A simple HTML page that includes a heading, a paragraph, and three buttons, one for each of the options (rock, paper, and scissors).
  • index.ts: This is where you'll work. You'll find the skeleton of the game's logic, and you'll need to fill in the blanks.
  • styles.css: A simple CSS file that styles the HTML page. You can ignore this file.

Take a look at the comments marked as "Quests" and implement the missing code.

Once you're done, you should be able to play the game simply by pressing one of the three buttons.

Face the challenge! ⚔️

Are you ready? Complete the challenge to move on to the next level!

Loading...