Skip to content

This is a simple guessing game. The program will generate a random number between 0 and 9. It will then prompt the player to enter a guess. After a guess is entered, the program will indicate whether the guess is too low or too high. If the guess is correct, the game will print a congratulatory message and exit.

License

Notifications You must be signed in to change notification settings

Owusu-Desmond/guess-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Number guessing game

This is a simple guessing game. The program will generate a random number between 0 and 9. It will then prompt the player to enter a guess. After a guess is entered, the program will indicate whether the guess is too low or too high. If the guess is correct, the game will print a congratulatory message and exit.

Built With

  • Ruby

Getting Started

To get a local copy up and running follow these simple example steps.

🛠 Installation & Set Up

If you dont have Ruby installed on your computer, you can download it from here.

If you installed git you can clone the code to your machine, or download a ZIP of all the files directly.

Download the ZIP from this location, or run the following git command to clone the files to your machine:

Ones you you have the copy of the code on your machine,

  • Open the terminal and navigate to the project directory.
  • Run ruby guess-game.rb to start the game.

Author

👤 Desmond Owusu Ansah

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

📝 License

This project is MIT licensed.

About

This is a simple guessing game. The program will generate a random number between 0 and 9. It will then prompt the player to enter a guess. After a guess is entered, the program will indicate whether the guess is too low or too high. If the guess is correct, the game will print a congratulatory message and exit.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages