Thread: Sudoku solver

  1. #1
    Registered User
    Join Date
    May 2021
    Posts
    1

    Question Sudoku solver

    Can someone please help me with homewrok? I'm really not sure what should I do with that. I need to programm a sudoku solver. The not filled sudoku should be in second one file in txt. format like that:

    000000090
    190470608
    052819407
    200048000
    009000500
    000750009
    907364180
    506081074
    080000000

    and I need to put that in array in the main code where every it should be solved and printed completed.
    It should be used just stdio.h library.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Sure we can help, but you need to make a start for yourself.

    Can you open the file?
    Can you read the file?
    Can you store the contents of the file in a suitable data structure?

    In short, post the code where you got stuck and ask a question about it.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    TEIAM - problem solved
    Join Date
    Apr 2012
    Location
    Melbourne Australia
    Posts
    1,907
    This might be an obvious question, but do you know how to solve it by hand?

    Once you have it in a data structure, can you work out how to solve it? a.k.a this cell can't be a 1,2,3,5,6,7,8,9 so it has to be a 4

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help with sudoku solver
    By kn1ghtmares in forum C Programming
    Replies: 6
    Last Post: 01-18-2012, 02:20 AM
  2. sudoku solver
    By kn1ghtmares in forum C Programming
    Replies: 7
    Last Post: 01-17-2012, 12:09 AM
  3. Please help me with my sudoku solver
    By Tharps in forum Game Programming
    Replies: 6
    Last Post: 12-17-2011, 11:45 PM
  4. Sudoku solver
    By M-S-H in forum C Programming
    Replies: 10
    Last Post: 12-15-2009, 03:26 PM
  5. sudoku solver
    By manav in forum Game Programming
    Replies: 11
    Last Post: 02-03-2008, 10:38 PM

Tags for this Thread