Skip to content
← Back to Community
A sudoku solver I made
Profile icon
DmitriiPavlov

I am new to programming, so I would appreciate any tips to improve this.

Voters
Profile icon
CrackerHacker
Profile icon
LingWu1
Profile icon
Soccer135246
Profile icon
Spacecraft
Profile icon
littlepenguin
Profile icon
lightningrock
Profile icon
SamPardoe
Profile icon
ThunderPython
Profile icon
zplusfour
Profile icon
moranstephen
Comments
hotnewtop
Profile icon
LingWu1
Profile icon
Glare

This is crazy! My Dad would love to use this to check his answers. Awesome!

Profile icon
littlepenguin

Awesome! Can you make it so the user can't put the same number in each row or column?

Profile icon
DmitriiPavlov

@KirikAltekar That would be a good idea... instead what I ended up doing is just making it so it checks it when the user presses enter. I will look into it.

Profile icon
DmitriiPavlov

@KirikAltekar It is updated now

Profile icon
ThunderPython

This was really a nice game @DmitriiPavlov . I am also new to programming and I also work in the same language. If you are up for an unofficial jam challenge the click on the link, read rules and participate. The link is
https://repl.it/talk/share/HELLO-RELPERS/55241

Profile icon
DmitriiPavlov
Profile icon
ThunderPython
Profile icon
Jeydin21

@DmitriiPavlov Hey, are these actually accurate?

Profile icon
DmitriiPavlov

@Jeydin21, yup every solution it gives is 100% accurate you can verify it yourself. This is really good for solving a sudoku puzzle you'd find in a newspaper since it wouldn't have multiple solutions - as do all good sudoku puzzles.

Profile icon
SwaroopBappanad

This is sick!

Profile icon
RahulChoubey1

It solved a sudoku with only 9 cells filled

Profile icon
DmitriiPavlov

@RahulChoubey1 It finds a possible solution, if there is multiple it will find one.

Profile icon
DmitriiPavlov

@RahuChoubey1 I might update it to enable you to cycle through multiple of them.

Profile icon
RahulChoubey1
Profile icon
DynamicSquid

Nice!

Profile icon
DmitriiPavlov

@DynamicSquid I looked on your profile, and noticed you made a very similar thing in Java - any tips to make mine faster?

Profile icon
FloCal35

Noice

Profile icon
DmitriiPavlov

Sorry for how bad this looks, this GUI module is not very good.

Profile icon
Pythonator01

Try pygame

Profile icon
CoolJames1610

This is advanced! So you're not new xD

Profile icon
DmitriiPavlov

@CoolJames1610 Nah, this took me a while lmao

Profile icon
CoolJames1610

@DmitriiPavlov maybe but it is still advanced :D wowee

Profile icon
DmitriiPavlov
Profile icon
CoolJames1610

@DmitriiPavlov no problem :D

Profile icon
CoolJames1610

AWESOME! WOW!