A Movie Guessing Game Backend built with Spring Boot, where players guess the movie name based on a randomly provided dialogue. Players get 5 chances to guess, and if they get stuck, 3 hints are available. Points increase based on correct guesses.
✅ Random Movie Dialogue: A random dialogue is shown, and the user has to guess the movie.
✅ 5 Chances to Guess: The user has up to 5 attempts to guess the correct movie.
✅ Hint System: If the user is stuck, they can request up to 3 hints:
- Movie Industry – Hollywood or Bollywood
- Release Year – The year the movie was released
- Lead Actor – A dialogue from the lead actor
✅ Scoring System:
- The user earns 1 point for each correct guess.
✅ Role-Based Access: - User: Can play the game (guess movies, request hints).
- Admin: Can play the game and also add new movies & dialogues.
✅ Secure API: JWT-based authentication and authorization.
✅ Database Storage: MySQL stores movie names and dialogues.
- Spring Boot – Backend framework
- Spring Security & JWT – Authentication & authorization
- Lombok – Reduces boilerplate code
- MySQL – Stores movies & dialogues
- JPA (Hibernate) – ORM for database interactions
- A random movie dialogue is displayed.
- The user enters their guess.
- The system validates the answer:
- Correct guess → The user earns 1 point.
- Incorrect guess → Remaining attempts decrease.
- If stuck, the user can request hints (max 3).
- The game ends when:
- The user guesses correctly.
- The user exhausts all 5 chances.
- Leaderboard & Ranking System
- More Hint Categories
- Multiplayer Mode
🎉 Contributions are welcome! Feel free to fork, raise issues, or submit pull requests. 🚀