How it works
Generating the board
The game must generate a board every time the game runs. The game does this by
using 2 for
loops to generate a button with an X and Y axis. See:
The self.button_data
dictionary will be essential throughout the rest of the program.
On tile click
When the tile is clicked, the reveal_tile()
function is called, as seen below:
Restart button is pressed
The restart button is binded to the restart()
function. When it's pressed, the
previous game data is cleared and it creates a new board. See: