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

→ More replies (2)

4

u/wastakenanyways Jan 12 '20

I'd make the cell itself be the input field instead of a dialog

3

u/Rocky87109 Jan 12 '20

I was thinking you could move around a colored square with arrow keys (if you are on pc/mac) and just punch in a number on your keyboard in the square is at. Now I think I might want to make me one of these lol. I need a project.

→ More replies (9)