Skip to content

Project 10: The Higher-Lower Game is an 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, tracking their score. It provides an engaging experience while demonstrating key programming concepts like data handling and user interaction.

License

Notifications You must be signed in to change notification settings

pranjalco/higher-lower-game-intermediate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project 10: Higher Lower Game

Description:

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.

How to Play:

  1. Game Objective: Guess which of the two options (A or B) has more followers on social media.
  2. Starting the Game: The game will display two options with their details (name, description, and country).
  3. Making a Guess: You will be prompted to choose either 'A' or 'B' based on which one you think has more followers.
  4. Game Progression: If you guess correctly, you will continue to the next round with a new set of options.
  5. Losing the Game: If your guess is wrong, the game will end, and your final score will be displayed.
  6. Replay Option: After the game ends, you can choose to play again or exit.

Level

  • Level: Intermediate
  • Skills: Python programming, modular programming, user input validation, data handling, loops, basic debugging
  • Domain: Gaming, Game Development, Fun & Games, Entertainment

Author

  • Name: Pranjal Sarnaik
  • Date: 2024-12-05

Features

  • 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.

Installation

  1. Clone this repository:
    git clone https://github.com/pranjalco/higher-lower-game-intermediate.git
    
  2. Navigate to the project directory:
    cd higher-lower-game-intermediate
    

Running the Program

  1. Ensure Python 3.9 or later is installed on your system.
  2. 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.
  3. 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.

About

Project 10: The Higher-Lower Game is an 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, tracking their score. It provides an engaging experience while demonstrating key programming concepts like data handling and user interaction.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages