Project has moved to GitLab at https://gitlab.com/Anthonyntilelli/Number_guessing
Computer will choose a random number between 0 to 100 by default. The user will have guess the number and the computer will respond with greater, lower or correct number. Score is based on the number of guesses/attempts required to choose correct number.
Input:
- 'Q!' - quit Program
- 'N!' - New Game
- Valid integer - number guess
Usage: number_guessing [options]
-m, --min INTEGER Set Minimum number
-M, --Max INTEGER Set Maximum number
-D, --Debug INTEGER Set hidden number
-h, --help Prints this help
ruby number_guessing.rb
ruby number_guessing.rb -m -50 -M 500
ruby number_guessing.rb -D 25
0 Success
1 General Failure or incorrect parameter provided (varied Message)
3 Invalid Command line arguments (varied message)
4 Invalid input after guess
- Ruby 2.4+
- Anthony Tilelli