Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

amirhessam88/tarneeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿƒ Tarneeb Score Tracker

A modern, feature-rich web application for tracking Tarneeb card game scores and statistics

Live Demo PHP JavaScript CSS3

๐ŸŽฏ Overview

Tarneeb Score Tracker is a comprehensive web application designed to help players track their Tarneeb card game scores, statistics, and performance over time. Built with modern web technologies, it provides an intuitive interface for managing games, players, and detailed analytics.

โœจ Features

๐ŸŽฎ Game Management

  • ๐Ÿ“ Add New Games: Create games with multiple rounds and detailed scoring
  • โœ๏ธ Edit Games: Modify existing games and update scores
  • ๐Ÿ—‘๏ธ Delete Games: Remove games from the system
  • ๐Ÿ“ธ Photo Proof: Upload multiple photos as game evidence
  • ๐Ÿ“… Date Tracking: Organize games by date with automatic sorting

๐Ÿ† Tournament System

  • ๐Ÿ† Tournament Brackets: Create and manage tournament brackets with multiple rounds
  • ๐ŸŽฏ Multiple Tournaments: Support for multiple tournaments with separate management
  • ๐Ÿ“‹ Team Format: Support for teams with 2 players per team
  • ๐Ÿท๏ธ Game Labels: Unique labels for each match (e.g., R16-M1, QF-M1, SF-M1, Final)
  • ๐Ÿ“ธ Tournament Photos: Upload proof photos for tournament games
  • โœ๏ธ Edit Tournament Games: Click any match to edit teams and add results
  • ๐ŸŽจ Visual Bracket: Beautiful tournament bracket visualization with connecting lines
  • ๐Ÿ”„ Auto-Advance: Winners automatically advance to next round

๐Ÿ“Š Statistics & Analytics

  • ๐Ÿ‘ฅ Player Rankings: Score-based rankings with color-coded top performers
  • ๐Ÿ† Team Rankings: Track team performance and statistics
  • ๐Ÿ“ˆ Win Rates: Calculate and display win percentages
  • ๐ŸŽฏ Score Tracking: Total score accumulation across all games
  • ๐Ÿ… Visual Rankings: Gold, silver, bronze indicators for top players/teams

๐Ÿ” Admin Features

  • ๐Ÿ”‘ Secure Login: Admin authentication system
  • ๐Ÿ“ค Export Data: Download game data as JSON
  • ๐Ÿ“ฅ Import Data: Restore data from JSON files
  • โš™๏ธ Game Management: Full CRUD operations for games

๐ŸŽจ User Experience

  • ๐Ÿ“ฑ Responsive Design: Works on desktop, tablet, and mobile
  • ๐Ÿ–ผ๏ธ Photo Enlargement: Click to view full-size game photos
  • ๐ŸŽจ Modern UI: Clean, intuitive interface with smooth animations
  • โšก Fast Performance: Optimized for quick loading and smooth interactions

๐Ÿš€ Live Demo

๐ŸŒ Visit the Live Application

Experience the full functionality of the Tarneeb Score Tracker with real-time data and all features enabled.

๐Ÿ› ๏ธ Technology Stack

  • Frontend: HTML5, CSS3, JavaScript (ES6+)
  • Backend: PHP 7.4+
  • Data Storage: JSON files
  • Photo Management: Multi-file upload system
  • Styling: Custom CSS with modern design patterns

๐Ÿ“ฆ Installation

Prerequisites

  • PHP 7.4 or higher
  • Web server (Apache/Nginx) or PHP built-in server
  • Modern web browser

Quick Start

  1. Clone the repository

    git clone https://github.com/yourusername/tarneeb.git
    cd tarneeb
  2. Start the PHP development server

    php -S localhost:8001
  3. Open your browser

    http://localhost:8001
    

Production Deployment

  1. Upload files to your web server
  2. Set permissions for the assets/ directory (write access for photo uploads)
  3. Configure PHP settings for file uploads if needed
  4. Access your domain to start using the application

๐ŸŽฎ How to Use

๐Ÿ‘ค For Players

  1. View Statistics: Check your ranking and performance metrics
  2. Browse Games: Look through recent games and scores
  3. View Photos: Click on game photos to see full-size images

๐Ÿ”‘ For Admins

  1. Login: Use the "Admin Login" button to access admin features
  2. Add Games: Click "Add New Game" to create new game entries
  3. Manage Data: Use the menu to export/import data
  4. Edit Games: Click the edit button on any game card
  5. Delete Games: Remove games using the delete button

๐Ÿ† For Tournament Management

  1. Navigate to Tournaments: Click the "Tournament" button on the main page
  2. Select Tournament: Choose an existing tournament from the list or create a new one
  3. Create Tournament: Admins can create a new tournament with a name (e.g., "2025 Championship")
  4. Add Tournament Games: Click "Add Tournament Game" to add matches
    • Select the round (Round of 16, Quarterfinals, Semifinals, 3rd Place, Final)
    • Choose the match label (e.g., R16-M1, R16-M2, etc.)
    • Enter team names and players
    • Add rounds and scores (optional - can be added later)
    • Upload proof photos
  5. Edit Matches: Click any match card to edit teams, players, or add results
  6. View Bracket: See the complete tournament bracket with connecting lines showing progression

๐Ÿ“ Project Structure

tarneeb/
โ”œโ”€โ”€ ๐Ÿ“„ index.php              # Main application entry point
โ”œโ”€โ”€ ๐Ÿ“„ index.html             # Main page (HTML version)
โ”œโ”€โ”€ ๐Ÿ“„ tournament.html        # Tournament bracket page
โ”œโ”€โ”€ ๐Ÿ“„ api.php                # Backend API endpoints
โ”œโ”€โ”€ ๐Ÿ“„ script.js              # Frontend JavaScript logic
โ”œโ”€โ”€ ๐Ÿ“„ styles.css             # Application styling
โ”œโ”€โ”€ ๐Ÿ“„ LICENSE                # License information
โ”œโ”€โ”€ ๐Ÿ“„ README.md              # This file
โ””โ”€โ”€ ๐Ÿ“ assets/
    โ”œโ”€โ”€ ๐Ÿ“ config/            # Secure configuration (environment variables)
    โ”œโ”€โ”€ ๐Ÿ“„ games.json         # Game data storage (includes tournament games)
    โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ favicon.png        # Site favicon
    โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ slickml.png        # SlickML logo
    โ””โ”€โ”€ ๐Ÿ“ photos/            # Uploaded game photos
        โ””โ”€โ”€ ๐Ÿ–ผ๏ธ *.jpg          # Game proof photos

๐ŸŽฏ Key Features Explained

๐Ÿ† Ranking System

  • Score-Based Rankings: Players and teams are ranked by total accumulated score
  • Visual Indicators: Top 3 players/teams get special color coding
  • Circular Rank Numbers: Easy-to-see ranking indicators on cards

๐Ÿ“ธ Photo Management

  • Multiple Uploads: Add several photos per game
  • Photo Enlargement: Click any photo to view full size
  • Delete Photos: Remove unwanted photos when editing games
  • Proof System: Photos serve as evidence for game results

๐Ÿ“Š Statistics Tracking

  • Win Rates: Percentage of games won
  • Total Scores: Cumulative score across all games
  • Game Counts: Total games played
  • Recent Activity: Latest games with detailed round scores

๐Ÿ”ง Configuration

Admin Credentials

The application uses a simple authentication system. Admin credentials can be configured in the JavaScript code.

File Upload Settings

Ensure your PHP configuration allows file uploads and has sufficient upload_max_filesize and post_max_size settings.

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

  1. ๐Ÿ› Report Bugs: Found an issue? Let us know!
  2. ๐Ÿ’ก Suggest Features: Have ideas for improvements?
  3. ๐Ÿ”ง Submit Pull Requests: Help us improve the code
  4. ๐Ÿ“– Improve Documentation: Help others understand the project

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • SlickML: Powered by SlickML for enhanced functionality
  • Community: Thanks to all users and contributors
  • Tarneeb Players: For inspiring this score tracking solution

๐Ÿ“ž Support

  • ๐ŸŒ Live Demo: tarneeb.amirhessam.com
  • ๐Ÿ“ง Issues: Report problems via GitHub Issues
  • ๐Ÿ’ฌ Discussions: Join the conversation in GitHub Discussions

๐ŸŽฎ Happy Gaming! ๐Ÿƒ

Track your Tarneeb scores like a pro!

Made with โค๏ธ