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.
- Ruby
To get a local copy up and running follow these simple example steps.
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.
👤 Desmond Owusu Ansah
- Github @Owusu-Desmond
- Twitter @DesmondOwusuDev
- LinkedIn @desmond-owusu-ansah
- Dev.to desmondowusudev
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed.