Results 1 to 4 of 4
Thread: Sudoku checker
- 04-27-2011, 09:22 AM #1
Member
- Join Date
- Apr 2011
- Posts
- 1
- Rep Power
- 0
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.
- 04-27-2011, 09:33 AM #2
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
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.
-
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.
- 04-27-2011, 12:41 PM #4
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
My intent was not to be rude, just simply letting them know the best way to get the most responses.
Similar Threads
-
number checker?
By linc186 in forum New To JavaReplies: 3Last Post: 03-05-2011, 11:12 AM -
isbn checker
By jingliu316 in forum New To JavaReplies: 2Last Post: 10-27-2010, 07:31 PM -
Sudoku randomizer help
By mochibon in forum New To JavaReplies: 0Last Post: 04-07-2010, 03:05 AM -
Grammar Checker
By zaz_rin in forum New To JavaReplies: 1Last Post: 07-19-2009, 02:01 PM -
ISBN Checker
By blobs86 in forum New To JavaReplies: 1Last Post: 03-23-2009, 11:07 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks