The Higher-Lower Game is a fun and interactive command-line game where players guess which option has more followers on social media. The game continues as long as the user guesses correctly, keeping track of their score. It offers a simple yet engaging experience, demonstrating core programming concepts like data handling, user interaction, and modular design.
- Game Objective: Guess which of the two options (A or B) has more followers on social media.
- Starting the Game: The game will display two options with their details (name, description, and country).
- Making a Guess: You will be prompted to choose either 'A' or 'B' based on which one you think has more followers.
- Game Progression: If you guess correctly, you will continue to the next round with a new set of options.
- Losing the Game: If your guess is wrong, the game will end, and your final score will be displayed.
- Replay Option: After the game ends, you can choose to play again or exit.
- Level: Intermediate
- Skills: Python programming, modular programming, user input validation, data handling, loops, basic debugging
- Domain: Gaming, Game Development, Fun & Games, Entertainment
- Name: Pranjal Sarnaik
- Date: 2024-12-05
- Random selection of elements for comparison.
- Validation of user input for better user experience.
- Continuous gameplay until the user makes a wrong guess.
- Keeps track of and displays the user's score.
- Option to replay the game after completion.
- Clone this repository:
git clone https://github.com/pranjalco/higher-lower-game-intermediate.git
- Navigate to the project directory:
cd higher-lower-game-intermediate
- Ensure Python 3.9 or later is installed on your system.
- To run the program:
- Using PyCharm: Open the project in PyCharm and run
app.py
. - Using Terminal/Command Prompt: Navigate to the project folder and execute:
python app.py
- By Double-Clicking: You can double-click
app.py
to run it directly, provided Python is set up to execute.py
files on your system.
- Using PyCharm: Open the project in PyCharm and run
- If the console window closes immediately, run the program from the terminal/command prompt or IDE to see the output.
Created by Pranjal Sarnaik
© 2024. All rights reserved.