Skip to content

Test your guessing skills against an AI or a friend in the classic game of Guess the Number!

License

Notifications You must be signed in to change notification settings

iVGeek/Guess_The_Number_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guess the Number Game

Screenshot 2023-06-12 202248

Guess the Number is a simple number guessing game implemented in Python. The game challenges players to guess a randomly generated number within a given range. It offers both single-player mode against an AI opponent and two-player mode for a competitive experience.

Story Behind the Veil of Numbers: Embark on a Captivating Journey with 'Guess the Number'

Immerse yourself in a tale that ignites the spirit of childhood games and the allure of coding brilliance. Join me as we venture into a world where laughter resonates, hearts race, and the thrill of guessing reigns supreme.

Picture a time when friendships were forged through shared quests, and number-guessing games held us spellbound. In those golden moments, the spark of programming ignited within me, setting the stage for the epic 'Guess the Number' project.

As the stars aligned, my partner, Heba, and I became steadfast allies on this extraordinary journey. Despite the distance that separated us, we defied time zones, overcame demanding schedules, and merged our talents to sculpt an unforgettable experience.

Within the realms of coding, I took on the mantle of the Game Developer, weaving intricate logic to challenge even the sharpest minds. Meanwhile, Heba, our visionary Game Designer, breathed life into the command-line interface, transforming it into a symphony of captivating visuals.

Together, we toiled tirelessly, pouring heart and soul into every pixel, every line of code. As the project blossomed, so did our connection, bolstered by the shared dream of transcending boundaries and crafting a game that would resonate with players worldwide.

Now, standing at the precipice of triumph, 'Guess the Number' awaits its moment in the spotlight. It is a testament to the power of collaboration, resilience, and the everlasting magic of childhood games. With bated breath, we unveil our creation to a world hungry for adventure.

Dive headfirst into the enchanting world of 'Guess the Number' and unlock the secrets that lie within. The README file will guide you on this daring expedition, beckoning you to test your mettle and celebrate the triumphs that await.

Step onto the grand stage of mystery and delight, where numbers dance and imagination soars. 'Guess the Number' is poised to captivate, challenge, and leave an indelible mark on your gaming journey.

So, my fellow adventurers, join us now. Embrace the quest, unravel the enigma, and immerse yourself in the captivating allure of 'Guess the Number.' The time has come to let your instincts guide you, as you embark on this unforgettable odyssey.

Let the numbers be your compass, and let the game commence!

Remember, to join in the excitement, connect with me on LinkedIn and explore the project's GitHub repository for a deeper glimpse into the magic that brought 'Guess the Number' to life. Together, let's celebrate the boundless possibilities of game development and forge new paths in the realm of innovation.

Features

  • Single-player mode against AI: Play against the computer and try to guess the number within a specified range.
  • Two-player mode: Compete against a friend and see who can guess the number first.
  • Multiple game levels: Choose from different difficulty levels with varying ranges and number of attempts.
  • Leaderboard: Keep track of the top scores achieved by players across different game levels.
  • Clear leaderboard: Reset the leaderboard and start fresh.
  • Interactive command-line interface: Enjoy a user-friendly interface with colorful text and ASCII art.

Requirements

  • Python 3.x

Installation

  1. Clone the repository or download the source code:

    git clone https://github.com/iVGeek/guess_the_number_game.git
    
  2. Navigate to the project directory:

    cd guess_the_number_game
    
  3. Install the required dependencies:

    pip install -r requirements.txt
    

Usage

  1. Run the game:

    python game.py
    
  2. Follow the on-screen instructions to select game modes, enter player names, and make guesses.

  3. Enjoy the game and try to beat the AI or your opponent!

Contributing

Contributions to Guess the Number Game are welcome and encouraged! Here's how you can contribute:

  1. Fork the repository.

  2. Create a new branch:

    git checkout -b feature/your-feature-name
    
  3. Make your changes and commit them:

    git commit -m "Add your commit message"
    
  4. Push to the branch:

    git push origin feature/your-feature-name
    
  5. Submit a pull request.

License

Guess the Number Game is licensed under the MIT License

Acknowledgements

Guess the Number Game was inspired by the classic number guessing game and built using the following Python libraries:

  • termcolor: For coloring the text in the command line.
  • pyfiglet: For creating ASCII art text.

Author

Guess the Number Game was developed by iVGeek & Heba Omar

Project Blog Post:

  1. iVGeek's Blog
  2. iVGeek LinkedIn

Support

If you have any questions, issues, or suggestions regarding Guess the Number, please open an issue.

Roadmap

Here are some potential features and improvements for future versions:

  • Enhanced AI for more challenging gameplay.
  • Additional game levels with different rules and ranges.
  • Graphical user interface (GUI) version.
  • Option to save and load game progress.

Feel free to contribute to the project by implementing any of these features or suggesting your own ideas.

Enjoy playing Guess the Number Game!

About

Test your guessing skills against an AI or a friend in the classic game of Guess the Number!

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages