Skip to content

Latest commit

ย 

History

History
82 lines (61 loc) ยท 1.93 KB

File metadata and controls

82 lines (61 loc) ยท 1.93 KB

๐Ÿดโ€โ˜ ๏ธ Treasure Hunt - Resonance'25

๐ŸŽฏ Overview

Treasure Hunt - Resonance'25 is an interactive game built using Streamlit where users log in, answer location-based questions, and progress through a treasure hunt by solving clues.


๐Ÿ“Œ Features

โœ… User authentication (Login with username & password)
โœ… Dynamic question-answer system
โœ… Hints for tricky questions
โœ… Session-based state management


๐Ÿ›  Tech Stack

  • ๐Ÿ Python
  • ๐ŸŽจ Streamlit
  • ๐Ÿ”„ Requests (API calls)
  • ๐Ÿ” dotenv (For environment variable management)

๐Ÿš€ Installation & Setup

1๏ธโƒฃ Clone the Repository

git clone <repository-url>
cd <repository-folder>

2๏ธโƒฃ Create a Virtual Environment (Optional but Recommended)

python -m venv venv
source venv/bin/activate  # On macOS/Linux
venv\Scripts\activate     # On Windows

3๏ธโƒฃ Install Dependencies

pip install -r requirements.txt

4๏ธโƒฃ Set Up Environment Variables

Create a .env file in the root directory and add your API URL:

API_URL=http://localhost:7153

5๏ธโƒฃ Run the Application

streamlit run app.py

๐ŸŽฎ How to Play?

1๏ธโƒฃ Login using your credentials.
2๏ธโƒฃ Solve questions based on the location clues.
3๏ธโƒฃ Submit answers to progress through the treasure hunt.
4๏ธโƒฃ Need help? Click "Get Hint" for guidance.
5๏ธโƒฃ Keep solving until you complete the hunt!


๐Ÿ” Security Notes

  • The .env file is ignored in .gitignore to keep API credentials safe.
  • Never expose sensitive data in the frontend.

๐ŸŽฏ Future Enhancements

๐Ÿš€ Leaderboard integration
๐Ÿš€ Timer-based challenge mode
๐Ÿš€ Multiplayer support


๐Ÿค Contributing

Feel free to fork, enhance, and submit a pull request!

Happy Hunting! ๐Ÿ†