Results 1 to 4 of 4

Thread: Sudoku checker

  1. #1
    Join Date
    Apr 2011
    Posts
    1
    Rep Power
    0

    Default Sudoku checker

    Hey guys,
    We are 4 students and have to make for school a java-excersise.
    In this excercise we need to make a sudoku checker. It has to work as follow:

    We need to save different sudoku's in java each time. Which you will fill in yourself.
    There has to be an option which will check of the a subject which we filled in on our sudoku. So we don't need to solve the whole sudoku but we need to check if the number we filled in the 1 square which contains 1 number is right.
    The checker has to check if the number is correct.
    And if it's correct, it should confirm the number is correct.

    The problem we have is, we have no idea how to save our sudoku, or even how to make a blank sudokumodel.

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    What have you tried so far? There is a lot of useful information on persistence in the io tutorials. Is this supposed to be a GUI program, or command line? If you provide code please wrap it in code tags
    [code ]<-omit space
    YOUR CODE HERE
    [/code]

    Also, please ask specific questions. If you get errors, copy and paste the exact error into code tags.

    Be as specific as possible, I am lazy, and I'm sure others are as well, the better you explain your problem, the more we can help you.

  3. #3
    ozzyman's Avatar
    ozzyman is offline Senior Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    797
    Blog Entries
    2
    Rep Power
    4

    Default

    You can go easy on them, they're just some college kids.

    I would advise you to start off with learning about the Scanner object. The Scanner object allows you to read input from the person using the program. Once you've read what they've typed you can work out what you want to do with the input.

    There's a detailed tutorial about getting input with Scanner here:
    Java Input Using Java Scanner

    Try to copy it and get it working yourself. Then try to adapt it to your own problem.

    If you have any errors with your code then come back here and tell us what the trouble was so we can help you.

  4. #4
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    My intent was not to be rude, just simply letting them know the best way to get the most responses.

Similar Threads

  1. number checker?
    By linc186 in forum New To Java
    Replies: 3
    Last Post: 03-05-2011, 11:12 AM
  2. isbn checker
    By jingliu316 in forum New To Java
    Replies: 2
    Last Post: 10-27-2010, 07:31 PM
  3. Sudoku randomizer help
    By mochibon in forum New To Java
    Replies: 0
    Last Post: 04-07-2010, 03:05 AM
  4. Grammar Checker
    By zaz_rin in forum New To Java
    Replies: 1
    Last Post: 07-19-2009, 02:01 PM
  5. ISBN Checker
    By blobs86 in forum New To Java
    Replies: 1
    Last Post: 03-23-2009, 11:07 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •