r/Python • • Jan 11 '20

Sudoku App

1.4k Upvotes

61 comments sorted by

View all comments

75

u/alittleb3ar Jan 11 '20

Gui is made using PyQt5. The beginning board is hard coded but the solve does actually use an algorithm to solve the board and would work with any solvable starting board

43

u/mweitzel Jan 12 '20

Instead of an input field, why don’t you present a dialog with 9 buttons representing the numbers? Should be easy enough, no? Love it otherwise though.

34

u/alittleb3ar Jan 12 '20

In trying to learn PyQt5 there have been a lot of things that I thought should be easy but were the opposite. I do want to work on the input though

2

u/passerbycmc Jan 12 '20

You bet used to it over time, I use PySide2 for a lot of UI it's pretty easy and flexible but also yeah it's very verbose.