main
TirSystem/git-workflows: Release / release (push) Skipped
CI / test (push) Successful in 35s
TirSystem/git-workflows: Sync GitHub mirror metadata / sync-metadata (push) Successful in 17s
TirSystem/git-workflows: Publish wiki / publish-wiki (push) Successful in 42s
TirSystem/git-workflows: Publish accepted milestones / publish (push) Successful in 43s
TirSystem/git-workflows: Validate / validate (push) Successful in 42s
TirSystem/git-workflows: OpenGrep / opengrep (push) Successful in 2m20s
Pong Game
The classic Pong arcade game for two players, built with Python's turtle module
as the Day 22 assignment of Udemy's 100 Days of Code: The Complete Python Pro
Bootcamp. It has no runtime dependencies.
📚 Table of Contents
🧭 Overview
Guides are in the project wiki, in English, Dansk and Bahasa Melayu.
Project layout
| Path | Contents |
|---|---|
.editorconfig |
Editor settings of the framework baseline |
.env.example |
Placeholders for the tokens of the framework scripts |
src/ |
Game source: main.py, paddle.py, ball.py, scoreboard.py, rules.py, constants.py |
tests/ |
pytest tests |
docs/ |
Project documents (business case, plan, milestones, reviews, traceability), docs/wiki/ (the wiki) and docs/images/ (screenshot) |
framework/ |
SQA and QC framework (git submodule) |
pyproject.toml |
Project configuration |
Doxyfile |
Doxygen configuration |
📋 Requirements
- Python 3.13 or newer, with Tk support (
turtleneeds it) git- Doxygen (optional, only to build the source documentation)
🛠️ Setup
Clone the repository, then create and use a local .venv and update pip inside it.
git clone ssh://git@git.tirsystem.com:10022/Tirsvad-Udemy-100-days-of-code/022-pong-game.git
cd 022-pong-game
Windows powershell
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
Linux debian
sudo apt install python3-venv python3-tk
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
MacOS
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
▶️ Run
python src/main.py
Right paddle: Up / Down. Left paddle: W / S. Click the window to close it.
Build the source documentation
doxygen Doxyfile
The HTML output is written to docs/doxygen/html/index.html.
🧪 Tests
python -m pytest
Continuous integration
.gitea/workflows/ci.yml installs the project with the dev extra and runs
python -m pytest on every push to main and on every pull request.
📄 License
GNU AGPL v3, see LICENSE.
🔗 Links
📎 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 milestones and their schedule |
| Milestones | One document per milestone: 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 |
Languages
Python
100%
