A modern, feature-rich web application for tracking Tarneeb card game scores and statistics
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.
- ๐ 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 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
- ๐ฅ 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
- ๐ 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
- ๐ฑ 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
๐ Visit the Live Application
Experience the full functionality of the Tarneeb Score Tracker with real-time data and all features enabled.
- 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
- PHP 7.4 or higher
- Web server (Apache/Nginx) or PHP built-in server
- Modern web browser
-
Clone the repository
git clone https://github.com/yourusername/tarneeb.git cd tarneeb -
Start the PHP development server
php -S localhost:8001
-
Open your browser
http://localhost:8001
- Upload files to your web server
- Set permissions for the
assets/directory (write access for photo uploads) - Configure PHP settings for file uploads if needed
- Access your domain to start using the application
- View Statistics: Check your ranking and performance metrics
- Browse Games: Look through recent games and scores
- View Photos: Click on game photos to see full-size images
- Login: Use the "Admin Login" button to access admin features
- Add Games: Click "Add New Game" to create new game entries
- Manage Data: Use the menu to export/import data
- Edit Games: Click the edit button on any game card
- Delete Games: Remove games using the delete button
- Navigate to Tournaments: Click the "Tournament" button on the main page
- Select Tournament: Choose an existing tournament from the list or create a new one
- Create Tournament: Admins can create a new tournament with a name (e.g., "2025 Championship")
- 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
- Edit Matches: Click any match card to edit teams, players, or add results
- View Bracket: See the complete tournament bracket with connecting lines showing progression
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
- 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
- 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
- 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
The application uses a simple authentication system. Admin credentials can be configured in the JavaScript code.
Ensure your PHP configuration allows file uploads and has sufficient upload_max_filesize and post_max_size settings.
We welcome contributions! Here's how you can help:
- ๐ Report Bugs: Found an issue? Let us know!
- ๐ก Suggest Features: Have ideas for improvements?
- ๐ง Submit Pull Requests: Help us improve the code
- ๐ Improve Documentation: Help others understand the project
This project is licensed under the MIT License - see the LICENSE file for details.
- SlickML: Powered by SlickML for enhanced functionality
- Community: Thanks to all users and contributors
- Tarneeb Players: For inspiring this score tracking solution
- ๐ Live Demo: tarneeb.amirhessam.com
- ๐ง Issues: Report problems via GitHub Issues
- ๐ฌ Discussions: Join the conversation in GitHub Discussions