A simple game made in python where you can guess a randomly generated number between two numbers you select. With a GUI!
A simple game made in python where you can guess a randomly generated number between two numbers you select. With a GUI!
I made a project where you can input a minimum and maximum value in a gui which generates a random number which you have to guess! If you guess too high or low it will also tell you this.
With this project I learned how tkinter works and more about how try and except work in python. I also learned more about classes because of my curiosity (The tutorial I saw for tkinter used them and I wanted to learn more about it).
For the most part making this went great, except that I had to rewrite it to work with tkinter :(
I also dislike how tkinter looks by default but I don’t know how I can make it look better.
That is everything you need to know!
So I kinda had to rewrite the entire project in order to make it work with tkinter, the ui library I used for this project. Now everything works like it is intended, which is great. I wish it looked better but idk how to do that yet, but I will find out at some point.
Log in to leave a comment
After about going through different iterations (also I haven’t programmed for a while) I got a working well-enough version of the number generating part (with input), and I have started on making the part where you guess the number yourself. After that I might add a gui if I find out how to, and I will look to add an option to play against a bot.
Log in to leave a comment