Skip to main content

A simple Python games library (Tic Tac Toe, RPS, Maths Quiz)

Project description

📦 minigamesbyvedcodes – A Simple Python Games Library 🎮 Overview

minigamesbyvedcodes is a beginner-friendly Python library that lets users play classic games by calling simple functions — no complex setup, no boilerplate code.

This is my first Python module, built to understand:

Python packages & modules

Clean API design

Code reuse

Real-world library structure

✨ Features

✅ Tic Tac Toe (2-player)

✅ Rock Paper Scissors (Player vs Computer)

✅ Maths Quiz (Score-based)

✅ Shared player name system

✅ Single-function game execution

✅ Clean and extendable structure

📁 Project Structure minigamesbyvedcodes/ │ ├── minigamesbyvedcodes/ │ ├── init.py │ ├── users.py │ ├── tictactoe.py │ ├── rps.py │ └── maths_quiz.py │ ├── README.md └── setup.py

Each file has a single responsibility, following professional Python library practices.

🚀 Installation

After publishing on PyPI:

pip install minigamesbyvedcodes

▶️ Usage import minigamesbyvedcodes as mnigames

minigames.tic_tac_toe() minigames.rock_paper_scissors() minigames.maths_quiz()

That’s it — the game starts instantly 🎉

🧠 Module Explanation init.py

Acts as the public API

Controls what users can import

Keeps internal files hidden

users.py

Handles player name input

Reused across all games

Prevents code duplication (DRY principle)

tictactoe.py

Implements board logic

Player switching

Win & draw conditions

Fully terminal-based

rps.py

Rock Paper Scissors logic

Player vs Computer

Randomized computer moves

maths_quiz.py

Generates random math questions

Tracks score

Interactive quiz format

🎯 Why This Project?

This project helped me learn:

How real Python libraries are structured

How to expose clean functions

How to reuse logic across modules

How PyPI publishing works

📄 License

MIT License — free to use and modify.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minigamesbyvedcodes-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minigamesbyvedcodes-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file minigamesbyvedcodes-0.1.0.tar.gz.

File metadata

  • Download URL: minigamesbyvedcodes-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for minigamesbyvedcodes-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ef54b75fde7465456873e015c90010d95ae3e9fc74804055aab4f5f267bf3b74
MD5 da5417703005c358de62e9ad103ca758
BLAKE2b-256 4715c64adfc034e59eedb0e194a5697b43d5f71ec093efa5641a72ff161ff1e9

See more details on using hashes here.

File details

Details for the file minigamesbyvedcodes-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for minigamesbyvedcodes-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9be758c2b3e36f9250e1d75356f6e994cf8c7f7befac87d044fa77c47670cf4
MD5 4c51528acf7280933ba20caf41655023
BLAKE2b-256 f3f29aef2fc50d9ffbdd83a505e05d99dc5edf66a1ccd279fd474c2fbecd4135

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page