Game Introduction

Learn how to print the game’s introduction and rules.

What we have

We have the breakdown of the game, so let’s go through the first thing we saw in the game. When the game starts, it introduces the game and lists the rules.

What now?

Let’s create a function that prints the welcome message and game rules.

  • First, initialize a void function to print the introduction.
  • Print all the rules of the game.

Try it yourself

Write your code in the code widget below and click the “Run” button to execute your code.

Sample output

Welcome to the Rock Paper Scissors game!

The rules of the game are simple:
1. Rock beats scissors
2. Scissors beats paper
3. Paper beats rock

If you’re unsure how to do this, click the “Show Hint” button.

Get hands-on with 1400+ tech skills courses.