A command-line implementation of the classic Higher/Lower game built with Python. Players are presented with two famous personalities or brands and must guess which one has more social media followers. The game continues until an incorrect guess is made, after which the final score is displayed.
This project was developed to strengthen core Python programming concepts while building a fun, interactive terminal game. It demonstrates the use of modular programming, control flow, data handling, and randomization.
- 🎲 Randomly selects two entities for comparison
- 👤 Displays name, profession, and country
- 📈 Compares follower counts behind the scenes
- 🔄 Winning option carries forward to the next round
- 🏆 Live score tracking
- ❌ Ends immediately after a wrong guess
- 🖥️ Clean console interface with ASCII art
-
Language: Python 3
-
IDE: Visual Studio Code
-
Modules Used:
random- Custom Python modules (
game_data.py,art.py)
- Variables
- Data Types
- User Input
- String Formatting (f-strings)
- Functions
- Return Statements
- Local Variables
- Lists
- Dictionaries
- Nested Data Access
ifelifelsewhileloops- Boolean Logic
- Comparison Operators
random.choice()list.index()- Function Parameters
- Function Return Values
- Modular Programming
- Code Reusability
- Game Logic
- State Management
- Input Validation
- Score Tracking
- Randomization
- Terminal-Based UI
Higher-Lower-Game/
│
├── higher_lower.py # Main game logic
├── game_data.py # Dataset of personalities
├── art.py # ASCII logos and VS graphics
├── README.md
- Clone this repository.
git clone https://github.com/VISHAL108-Mech/Higher-Lower.git- Navigate into the project directory.
cd Higher-Lower- Run the program.
python higher_lower.pyBuilding this project helped reinforce:
- Writing reusable functions
- Working with lists of dictionaries
- Importing custom modules
- Designing game loops
- Maintaining application state
- Separating data from logic
- Improving problem-solving skills
- Writing clean and readable Python code
Compare A: Cristiano Ronaldo, a Footballer, from Portugal.
vs
Compare B: Taylor Swift, a Musician, from USA.
Who has more followers?
Type 'A' or 'B':
Keep guessing correctly to increase your score!
- Difficulty levels
- Multiple datasets
- High-score system
- Score persistence using files
- Graphical interface (Tkinter/Pygame)
- Timer mode
- Hint system
- Unit testing
- Exception handling for invalid inputs
This project showcases my ability to:
- Build complete Python applications
- Apply problem-solving techniques
- Write modular and maintainable code
- Work with real-world datasets
- Implement game logic using algorithms
- Structure Python projects professionally
- Use GitHub as a project portfolio
Developer: Vishal Yadav
GitHub: https://github.com/VISHAL108-Mech
LinkedIn: www.linkedin.com/in/vishal-yadav-2a91a7428
Email: vy4122000@gmail.com
Here’s a sample of the game in action:

⭐ If you found this project interesting, consider giving it a Star on GitHub!