Skip to content

๐Ÿš€ A fun Rock-Paper-Scissors game built with Django! ๐ŸŽฎ [WIP] with database authentication, leaderboard, Kafka, Redis, and more features coming soon! ๐Ÿ”ฅ

Notifications You must be signed in to change notification settings

gaju91/python-django-rps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Rock Paper Scissors - Django Game (WIP) ๐Ÿš€

Welcome to the Rock Paper Scissors game built using Python Django! This project is a Work in Progress (WIP) with exciting features planned for future updates. Stay tuned! ๐ŸŒŸ

Screen Recording 2025-02-09 at 7 32 51โ€ฏPM


๐Ÿ“Œ Project Overview

This game is designed for beginners who want to explore Django concepts while working on a fun project! , this project aims to introduce important backend concepts, including:

โœ… Database Authentication
โœ… Leaderboard System
โœ… Kafka Event Streaming
โœ… Redis Caching
โœ… Real-time Multiplayer Mode
โœ… AI Opponent & Difficulty Levels


๐ŸŽฏ Features

โœ… Current Features:

  • ๐ŸŽฎ Classic Rock Paper Scissors Gameplay
  • ๐Ÿ”ฅ Lottie Animations for Smooth Visuals
  • ๐Ÿ’ฐ Betting System for a Competitive Edge
  • ๐ŸŽจ Modern UI/UX with Dark Gradient Theme
  • ๐Ÿ“Š Basic Score Tracking

๐Ÿ”ฅ Upcoming Features:

  • ๐Ÿ›ก๏ธ User Authentication (Login/Signup)
  • ๐Ÿ† Leaderboard for Competitive Ranking
  • โšก Kafka Integration for Event Handling
  • โšก Redis Caching for Performance Boost
  • ๐Ÿ“Š Match History & Statistics Tracking
  • ๐Ÿง  AI Opponent with Adaptive Strategies
  • ๐ŸŒ Multiplayer Mode with Real-time Updates

๐Ÿ“‚ Project Structure

rock-paper-scissors/
โ”‚โ”€โ”€ rps_game/                # Main Django app
โ”‚   โ”œโ”€โ”€ migrations/          # Database migrations
โ”‚   โ”œโ”€โ”€ static/              # Static files (CSS, JS, images)
โ”‚   โ”‚   โ”œโ”€โ”€ css/             # Stylesheets
โ”‚   โ”‚   โ”œโ”€โ”€ js/              # JavaScript logic
โ”‚   โ”‚   โ”œโ”€โ”€ images/          # Game assets
โ”‚   โ”œโ”€โ”€ templates/           # HTML templates
โ”‚   โ”‚   โ”œโ”€โ”€ base.html        # Base template
โ”‚   โ”‚   โ”œโ”€โ”€ game.html        # Main game UI
โ”‚   โ”œโ”€โ”€ views.py             # Game logic and API endpoints
โ”‚   โ”œโ”€โ”€ urls.py              # URL routing
โ”‚   โ”œโ”€โ”€ models.py            # Database models (To be added)
โ”‚   โ”œโ”€โ”€ forms.py             # Django forms (Future feature)
โ”‚
โ”œโ”€โ”€ env/                     # Virtual environment (Recommended)
โ”‚   โ”œโ”€โ”€ bin/                 # Executables and scripts
โ”‚   โ”œโ”€โ”€ lib/                 # Installed Python libraries
โ”‚   โ”œโ”€โ”€ include/             # Header files
โ”‚
โ”œโ”€โ”€ db.sqlite3               # SQLite database (Temporary for development)
โ”œโ”€โ”€ manage.py                # Django management script
โ”œโ”€โ”€ requirements.txt         # Dependencies list
โ”œโ”€โ”€ README.md                # Project documentation

๐Ÿ› ๏ธ Installation & Setup

1๏ธโƒฃ Clone the Repository

git clone https://github.com/gaju91/python-django-rps.git
cd python-django-rps

2๏ธโƒฃ Create a Virtual Environment (Recommended)

python -m venv env
source env/bin/activate  # On Windows use `env\Scripts\activate`

3๏ธโƒฃ Install Dependencies

pip install -r requirements.txt

4๏ธโƒฃ Run Migrations

python manage.py migrate

5๏ธโƒฃ Start the Development Server

python manage.py runserver

Visit http://127.0.0.1:8000/ to play the game! ๐ŸŽฎ


๐Ÿ“š Resources to Get Started


๐Ÿค Contributing

Contributions are welcome! Feel free to fork the repository, submit pull requests, or suggest new features in the issues section. ๐Ÿš€


๐Ÿ“œ License

This project is licensed under the MIT License.

About

๐Ÿš€ A fun Rock-Paper-Scissors game built with Django! ๐ŸŽฎ [WIP] with database authentication, leaderboard, Kafka, Redis, and more features coming soon! ๐Ÿ”ฅ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published