I am presently reading a book on python programming. I created a simple game where the program generates a random number and then asks you to guess what that number is. When you complete the game it tells you how many guess you took and asks if you wish to play again. Please enjoy.
- Windows
- Linux
- MacOS
- Have python installed Here (right click to open in a new tab)
- Open a terminal(linux / Mac) or cmd(windows) prompt
- Optional - Move it to documents folder
- Navigate to the folder with the py script
- Type, "python guessNumberV2.py"
- Hit "Enter"
- Enjoy
- Hard to read in its present form
- No input validation on, "Do you wish to play again"
- No input validation on "Guesses"
- Entering a string or char will crash the program in guess input
- Resetting the game needs to moved into a method
- Hard to see entry point of the program
- Fuctions declared over the main program (Hard to understand)
- No scoring system