hey guys so i have this sudoku solver. the code is right and it works very well. my problem is the how do i insert a function that will output a partially filled grid and will ask the user to fill the partially filled grid. please help guys.............
So basically you are asking how to make a sudoku game?
You will have to:
1 Create a grid and partially fill it according to an algorithm: http://www.google.be/search?q=sudoku%20creation%20algorithm
2 Print the grid to the user
3 Ask the user for input
4 repeat step 2 and 3 until the sudoku is completed
5 check solution
That should get you started, let us know which of these steps you require assistance with and try to be specific about what you need help on, then you're most likely to get a response.
hi NwN thanks for the help my code works gud but i want it to output a partially filled grid where the user can enter number instead my code outputs already solved puzzle directly. so basically its no.1,3 and 4.
thanks
You might want to change the solve function to creating a separate grid altogether. Then in main, you can ask the user to enter whatever numbers they want, and if they want a "hint" you can display the answer at that grid location. If they just want it solved, you can show them the separate grid that solved came up with so they know.