Hi Welcome to this new tutorial from MOO ICT. Here we will be making a number guessing game using python and tkinter. The main feature of this game is that it will have 3 clickable buttons, each button will display random number. The computer will have a secret number variable that will contain one of the buttons random number. User will need to click on the right button to guess the computers secret number. If they do it will display a text to say you guessed it correctly if not you can continue to play. I didn’t do an end to this game on purpose so you can make it or end it anyway you want to.
Lesson objective’s –
Make a number guessing game with Python and Tkinter
Use multiple GUI components in the game
Add buttons to lists
Use random to pick a random button and pick random numbers for the buttons
Use local and global variables
Use functions and Events in the game
YouTube Tutorial
Top comments (0)