Tirsvad 99d1e95913
TirSystem/git-workflows: Publish wiki / publish-wiki (push) Skipped
TirSystem/git-workflows: Release / release (push) Skipped
TirSystem/git-workflows: Sync GitHub mirror metadata / sync-metadata (push) Successful in 33s
TirSystem/git-workflows: Publish accepted milestones / publish (push) Successful in 1m15s
TirSystem/git-workflows: Validate / validate (push) Successful in 1m16s
TirSystem/git-workflows: OpenGrep / opengrep (push) Successful in 3m21s
Merge pull request 'Fill the closing wiki review RC-017' (#19) from mil-003-close into main
2026-11-15 09:12:53 +01:00

🚀 Rock Paper Scissors Game

A beginner-friendly Python program to play Rock, Paper, Scissors against the computer (Udemy's 100 Days of Code™: The Complete Python Pro Bootcamp, Day 4).

📚 Table of Contents

🧭 Overview

You choose 0 (Rock), 1 (Paper) or 2 (Scissors); the computer picks randomly using the random module. Both choices are shown as ASCII art, and the winner is decided with if/elif/else logic (rock beats scissors, scissors beats paper, paper beats rock). Draws and invalid input are handled.

Screenshot of the game

The repository holds the game in src/rock_paper_scissors/, its tests in tests/, and the project documents in docs/, which follow the SQA and QC framework in framework/.

📋 Requirements

  • Python 3.13 or newer
  • No runtime dependencies
  • pytest for running the tests (installed via the dev extra)

🛠️ Setup

Create and activate a local virtual environment in .venv:

python -m venv .venv

Activate it:

# Windows (PowerShell)
.venv\Scripts\Activate.ps1

# Windows (cmd)
.venv\Scripts\activate.bat

# macOS / Linux / Git Bash
source .venv/bin/activate        # Git Bash on Windows: source .venv/Scripts/activate

Install the project in editable mode with test tools:

python -m pip install -e ".[dev]"

Leave the environment with deactivate.

▶️ Run

With the virtual environment active:

python -m rock_paper_scissors

or, after installing, rock-paper-scissors.

🧪 Tests

python -m pytest

📄 License

GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See LICENSE.

📎 Appendix: Project documents

The documents a newcomer needs, in reading order.

Document What it tells you
Business Case Why the project exists, its scope and success criteria
Stakeholder Analysis Who is involved; the stakeholder IDs used for owners and reviewers
Project Plan The gateways and their schedule
Milestones One document per gateway: Go/No-Go criteria and tasks
Artifact registry Where each artifact type lives, the next version, the PO language and domain
Traceability matrix How the artifacts link and when each was last reviewed

S
Description
Rock, Paper, Scissors game against the computer - Day 4 of Udemy 100 Days of Code (Python)
Readme AGPL-3.0
274 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 100%