An interactive educational web game that tests your knowledge of Indian states through food, history, and monuments. Built with Flask and modern web technologies.
- Three Difficulty Levels: Easy, Medium, and Hard
- Timed Challenges: 60-second rounds with time bonuses
- Progressive Hints: Food, History, and Monument clues
- Smart Scoring System: Points based on difficulty, hints used, and time remaining
- High Score Tracking: Persistent score tracking across sessions
- 15 Indian States with authentic information
- Cultural Food Items: Traditional dishes and regional specialties
- Historical Context: Ancient dynasties, empires, and cultural heritage
- Architectural Wonders: Famous monuments and UNESCO World Heritage sites
- Additional Hints: Capital cities, nicknames, and unique features
- Responsive Design: Works seamlessly on desktop and mobile devices
- Beautiful UI: Indian flag-inspired color scheme with smooth animations
- Interactive Elements: Hover effects, transitions, and visual feedback
- Accessibility: Clear typography and intuitive navigation
- Python 3.7 or higher
- pip (Python package installer)
-
Clone the repository
git clone <repository-url> cd incredible-india-game
-
Install dependencies
pip install -r requirements.txt
-
Run the application
python app.py
-
Open your browser Navigate to
http://localhost:5000
incredible-india-game/
โโโ app.py # Main Flask application
โโโ requirements.txt # Python dependencies
โโโ templates/
โ โโโ index.html # Main game interface
โโโ README.md # Project documentation
- Choose Difficulty: Select Easy (10 pts), Medium (20 pts), or Hard (30 pts)
- Read Clues: Reveal Food, History, and Monument clues as needed
- Make Your Guess: Type the state name and submit your answer
- Beat the Clock: Answer within 60 seconds for time bonuses
- Base Points: 10 (Easy), 20 (Medium), 30 (Hard)
- Hint Penalty: -2 points per hint used
- Time Bonus: +1 point per 10 seconds remaining
- Minimum Score: 1 point (never goes below)
- Maharashtra - Financial capital, Bollywood
- Rajasthan - Land of Kings, largest state
- Punjab - Land of Five Rivers, Golden Temple
- Uttar Pradesh - Most populous, Taj Mahal
- Goa - Smallest state, beautiful beaches
- Kerala - God's Own Country, backwaters
- Tamil Nadu - Classical dance, ancient temples
- West Bengal - Cultural capital, Durga Puja
- Gujarat - Mahatma Gandhi's birthplace
- Karnataka - Silicon Valley of India
- Madhya Pradesh - Heart of India
- Andhra Pradesh - Spicy cuisine, IT hub
- Assam - One-horned rhinoceros, tea gardens
- Himachal Pradesh - Hill stations, apple orchards
- Odisha - Jagannath Temple, classical dance
- Session Management: Secure game state tracking
- RESTful API: JSON-based communication
- Error Handling: Comprehensive exception management
- Smart Answer Checking: Handles abbreviations and partial matches
- Responsive Design: Mobile-first approach with Tailwind CSS
- Modern JavaScript: ES6+ features with async/await
- Smooth Animations: CSS transitions and keyframe animations
- Interactive UI: Real-time feedback and visual cues
POST /start_game
- Initialize new game sessionPOST /submit_guess
- Process user's answerPOST /use_hint
- Track hint usagePOST /new_round
- Start next challengePOST /reset_game
- Reset game stateGET /get_stats
- Retrieve game statistics
- Indian Heritage: Saffron, white, and green color palette
- Modern Aesthetics: Clean layouts with subtle shadows
- Accessibility: High contrast ratios and readable fonts
- Responsive: Seamless experience across all devices
- Progressive Disclosure: Information revealed as needed
- Immediate Feedback: Real-time responses to user actions
- Gamification: Points, levels, and achievements
- Educational Value: Learning through interactive gameplay
# app.py
app.secret_key = 'incredible-india-states-game-2024' # Change in production
- Add New States: Extend
STATES_DATA
array inapp.py
- Modify Scoring: Adjust
calculate_score()
function - Change Timer: Update timer duration in JavaScript
- Styling: Customize CSS classes in
templates/index.html
python app.py
# Runs on http://localhost:5000
- Set Production Secret Key
- Configure WSGI Server (Gunicorn, uWSGI)
- Set Up Reverse Proxy (Nginx, Apache)
- Enable HTTPS for secure sessions
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
EXPOSE 5000
CMD ["python", "app.py"]
We welcome contributions! Here's how you can help:
- Add state data to
STATES_DATA
inapp.py
- Include food, history, monument, and hints
- Assign appropriate difficulty level
- Test thoroughly
- Enhanced scoring algorithms
- Additional hint types
- Multiplayer functionality
- Achievement system
- Sound effects and music
Please include:
- Browser and version
- Steps to reproduce
- Expected vs actual behavior
- Screenshots if applicable
This project is open source and available under the MIT License.
- Cultural Content: Sourced from authentic Indian heritage resources
- Design Inspiration: Traditional Indian art and modern web design
- Educational Value: Promoting knowledge of India's rich diversity
- Community: Thanks to all contributors and players
- Issues: Report bugs via GitHub Issues
- Questions: Contact the development team
- Suggestions: We'd love to hear your ideas!
Made with โค๏ธ for promoting Indian cultural heritage through interactive learning
Incredible India - Unity in Diversity ๐ฎ๐ณ