Just for fun I have made a sudoku generator. My program simply generates a complete sudoku with a backtracking algorithm and displays it.
I would like to display the evolution of the sudoku, seeing each square appear on screen as it is calculated. I would like to see it come to a dead end, go back, and resume.
Currently attempts to insert text objects to display the sudoku while it’s being worked out have failed. Basically the whole thing happens way too fast and leads to odd results, sometimes having the same square printed multiple times.
Is there some way to slow down the program so the printing to screen can keep up?
thanks.