Sudoku Solver using C++

Thursday, November 20th, 2008

You have seen it in the news papers, you have seen it in the magazines or in the web sites, you might have sat hours ‘n hours to solve it. Yes, it is the king of all number puzzles, it is “SUDOKU”.

We bring to you the ultimate solution for all your struggles, The SUDOKU Solver.

As you know, now a days mathematical puzzle-SUDOKU is in boom all over the world. Sudoku is a 9X9 matrix with nine 3×3 sub-matrices, that we need to fill by entering the numbers from 1 through 9, without the repetition of the a number in the rows, columns or in the sub matrices.

Figure: 1- Sudoku Problem

Figure: 1- Sudoku Problem

We can get the Sudoku puzzle in ease by different means, as discussed. You might have struggled a lot to solve the same. To be true, even me too. Here I developed a fast and robust package, that solves the puzzles, that are not easy to solve by hands. It will solve the Sudoku entered in fraction of a milli-second and will display the solved result.

Figure: 2 - Sudoku Result

Figure: 2 - Sudoku Result

Click here to download the executable files

When the code executes, a blank Sudoku will be displayed with 9×9 red boxes. The user is needed to enter the numbers corresponding to the source puzzle (Figure 1). To enter this, user should use the arrow keys to cruse to the required box. The selected box will be highlighted with a blue boundary. You have to enter the number through the keyboard. Once you have done entering all the numbers in the puzzle just hit the ‘Enter’ key on the keyboard till you get the solved result (Figure 2). If the Sudoku cannot be solved by this program a message will be displayed telling that the given puzzle cannot be solved.

Avatar Image

Author Name :
Ranjith

Total : 80 Comments


80 Responses to “Sudoku Solver using C++”

  1. ekta singh says:

    plz send me the coding for sudoku solver

  2. mans says:

    hi dear!!

    can i get the coding please??

  3. Vishal says:

    Sounds interesting…
    Where can I get the code ?

  4. navi says:

    plz send sudoku code..thnx in advance….

  5. akhilesh says:

    plz send sudoku code..thnx in advance….

  6. bahman says:

    pls send to me algorithm or source Code … thanx

  7. nick says:

    pls send me source code or algorithm……..thankq

  8. pawase kailas says:

    please give me your coding about suduco solver using c++.

  9. Dan says:

    please send me your source code in C++
    thanks

  10. Mike says:

    Can you please send me the source code?

  11. leena says:

    pleaaaaase send for me the code i need it today or tomoro

  12. anjana says:

    can u plz send the coding??

  13. razel says:

    please send me any program that you have

    can i use it in study thanks

  14. Rajaramachandran says:

    Mr.Ranjith
    Can U pls mail me the coding!!!!!!!!!!
    Thanx in Advance!!!!

  15. fayis k says:

    Can U pls mail me the coding!!!!!!!!!!

  16. Mayank Kumar says:

    Anyone please mail me suduku source code in any programming language (email id – bingos.mayanks@gmail.com). i really need it .

  17. Raja says:

    please mail me suduku source code in any either c or c++ language (email id – rselva19@gmail.com). i really need it .

  18. hayfa says:

    plz send me the source code for sudoku solver.

  19. PRANJAL NAYAK says:

    hey ! pls send me the source code to solve the sudoku as soon as possible !

  20. Ravi says:

    Hello sir This is Ravi Can u Please send sudoku program Turbo C or C++ source code
    My mail id is [ravibabujonna@gmail.com]

  21. soha sheikh says:

    plz send me sudoku source code in my emailid-farheenn44@gmail.com

  22. shakir pv says:

    sir please help me if u have Sudoku program with graphics in C or C++
    please send me @ shakirpv007@gmail.com

  23. shakir pv says:

    Sir please help me if u have sudoku source code with graphics in C or C++
    please send me @ shakirpv007@gmail.com..

  24. CHINMAY VIVEK says:

    plz send me coding

  25. George says:

    plz can u send me the sudoku source code…

  26. Mohana says:

    Plz snd me the program of sudoku solver

  27. sirlash says:

    please send me c++ code for sudoku

  28. warlock says:

    please send me c++ code for sudoku..

  29. Naveen says:

    Hai every one i am in desperate state. please help me out in solving progressive scanning usin c/c++ (computer graphics) . if possible mail me the algorithm.

Leave a Reply

Question and Answer
C/C++ Unix & Linux Wordpress
Source codes
C C++ Java

Free email signup