This is a Python-based interactive game that helps users learn coding languages by solving programming challenges in a gamified environment. Players have to guess the output of Python code snippets, earn points for correct guesses, and progress through different difficulty levels.
- Multiple Difficulty Levels: Choose from easy, medium, and hard levels, each with corresponding sets of code snippets.
- Time Limit: Each code snippet comes with a time limit. The player must guess the output within the specified time to earn points.
- Lives System: Start with a certain number of lives and lose one for each incorrect guess. The game ends when all lives are lost.
- Hints: Players can request hints for code snippets to receive some guidance.
- Score Multipliers: Earn bonus points for consecutive correct guesses.
- Python 3.x
- Clone this repository to your local machine.
- Install the required packages listed in
requirements.txt
using pip: - Run the
coding_language_learning_game.py
script in your Python environment to start the game. - Choose a difficulty level and start guessing the output of the given Python code snippets.
- Select a difficulty level (easy, medium, hard) at the beginning of the game.
- A Python code snippet will be displayed, and you need to guess the output within the time limit.
- If your guess is correct, you earn 10 points.
- If your guess is incorrect or time runs out, you lose a life.
- The game continues until you run out of lives or decide to stop playing.
- Your final score will be displayed at the end of the game.
Enjoy the Coding Language Learning Game and have fun while improving your coding skills!