Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.25 KB

File metadata and controls

55 lines (40 loc) · 1.25 KB

📌 Word Guessing Game (Python)

A simple Python-based word guessing game where the player must guess the secret word “giraffe” within 4 attempts, with helpful hints after each wrong guess.

🎮 Features

=>User gets 4 attempts to guess the word =>3 hints shown after each wrong attempt =>Input is cleaned using .strip().lower() =>Win/Lose message will be displayed based on attempt =>if user reached the guessing limit "game over" text displays =>Option to restart the game =>user can choose to restart the game

Beginner-friendly and easy to understand 🛠 Technologies Used: Python 3

▶️ How to Run:

Install Python 3 Download this repository Open terminal inside the folder (or) enter the code in visual studio

Run: python final.py (or) run in visual studio 📝 Example Output enter your guess: cat try again hint1: it is an animal

enter your guess: cow try again hint2: it has long neck

enter your guess: horse try again hint3: it eats green leaves and its name starts with g and ends with e

enter your guess: lion limit over better luck next time

🔁 Restart Option

If the player types "restart" after losing, the game starts again automatically.

✔️ Project Status

Completed ✔️ Uploaded to GitHub ✔️

🎉 Thank you for checking out my project!