2
Play
Tirsvad edited this page 2026-11-15 08:57:56 +01:00

English · Dansk · Bahasa Melayu

Play

Start the game

With the virtual environment active, run either command:

python -m rock_paper_scissors
rock-paper-scissors

Rules

Type 0 for Rock, 1 for Paper or 2 for Scissors.

You Computer Result
Rock Scissors You win
Scissors Paper You win
Paper Rock You win
Same choice Same choice Draw

Any other input (for example 3 or rock) prints a message and ends the round with a loss; the game never crashes on bad input.

Colour

The title is coloured when the output is a terminal. Set the NO_COLOR environment variable to turn colour off.

See also Install and Architecture.