Member-only story

Python Project: Rock-paper-scissors:

Rakan Khaled
3 min readMay 15, 2024
Photo by Marcus Wallis on Unsplash

I’m going to teach you some useful and fun Python projects, that you can add to your portfolio and practice before any Python interview!

Together we are going to create a simple game of rock-paper-scissors where the user (you) plays against the computer.

Let’s begin!

Here’s how you can get started.

Requirements:

  • Python installed on your computer (it can be Ubuntu CMD, IntelliJ, or Visual Code).

The Concept of the Game:

The game will involve a user playing against the computer. The choices will be:

  • Rock
  • Paper
  • Scissors

The rules are:

We all know the rules, but here is a small recap!

  • Rock beats Scissors
  • Scissors beat Paper
  • Paper beats Rock
  • If both the player and the computer choose the same item, it’s a tie.

Steps to Build the Game:

Setup the Game:

  • Import the necessary modules.
  • Create a list of possible choices.

--

--

Rakan Khaled
Rakan Khaled

Responses (1)