This week’s mini-project in my Coursera Python class was to create a Guess The Number game, where the program selects a random number in a specified range (either 0-100 or 0-1000 at the player’s discretion), and the player guesses, with the program saying Higher or Lower until the player guesses correctly, or runs out of guesses.
It was a fairly basic program. We used GUI elements for the first time. Two quibbles/annoyances: Event handlers, which to me seem the same as functions. Why call them something different? It’s just a function called by an event, isn’t it? Maybe I’m missing something, and the rest of the course will clarify and show me how event handlers are distinct from functions.
The second quibble is with the course: For GUI elements, they use SimpleGUI, which is a module created especially for the class, and doesn’t exist otherwise. I would have preferred a module we could use outside the class, like tkinter. I don’t know anything about them, and would like to apply what I learn elsewhere. It seems like I’ll have to learn tkinter or something like it outside the class.
I’ll post a link to my game once the submission period for grading is over. If you are taking the class and have a question, let me know via the comments and I’ll do my best to help.