An interactive math-based game built using HTML, CSS, JavaScript, PHP, and MySQL that helps users practice BODMAS rules in a fun and engaging way.
- 🎯 Multiple Levels (Easy → Hard)
- 🧠 Random BODMAS Questions Generator
- ⏱ Countdown Timer
- ❤️ Lives System
- 💡 Hint System
- 🔊 Sound Toggle
- 🎉 Confetti Animation on Correct Answer
- ⭐ Star Rating System
- 🏆 Leaderboard (Top Scores)
- 👤 Player-wise Progress (Each name has separate levels)
- Frontend: HTML, CSS, JavaScript
- Backend: PHP
- Database: MySQL
- Libraries: Canvas Confetti
The project follows a simple interactive architecture:
User Interface (HTML / CSS)
↓
Game Logic (JavaScript)
↓
Backend (PHP)
↓
Database (MySQL)
📁 bodmas-game
│
├── index.php
├── style.css
├── script.js
├── db.php
├── save_score.php
├── save_star.php
└── leaderboard.php
-
Install XAMPP / WAMP
-
Move project folder to:
htdocs/
-
Start:
- Apache
- MySQL
- Open browser:
http://localhost/bodmas-master/
- Enter your name
- Select difficulty
- Choose level
- Solve BODMAS questions
- Earn stars ⭐
- Unlock new levels
- Check leaderboard 🏆
- 🥇 Top 3 Leaderboard Highlight (Gold/Silver/Bronze)
- 📊 Player Statistics Dashboard
- 📱 Mobile App Version
- 🌐 Online Multiplayer Mode
- 🧠 Advanced BODMAS Challenges
If you like this project, please ⭐ the repository!



