Help a lurker

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: May 2005
Posts: 4
Reputation: desi_programmer is an unknown quantity at this point 
Solved Threads: 0
desi_programmer desi_programmer is offline Offline
Newbie Poster

Help a lurker

 
0
  #1
Oct 2nd, 2006
Please help! I know I don't post here much, in fact, I don't post here at all, but this does not mean I am just some noob trying to get some easy code. I have been in programming for two years, and signed up to this website about the same time. I signed up because I was interested in programming, and thought I could make some useful contributions. Well, I was wrong! You guys knew way more than I do, and still do, as I am still a beginner Java programmer. So, I decided I would just lurk and watch conversations to try and gather up as much info as possible, and it helped, getting me through some tough programs. I was confident to say that I never had to ask for help on anything, because most of the time I could figure it out myself using the knowledge I gained with experience and by visiting this site. Well, that has changed!

I have been assigned a sudoku program that must check the answers of a Sudoku puzzle. Basically, the teacher inputs 9 rows and 9 columns of numbers, and the output must show if the row is ok(meaning none of the same numbers in the row), the column is ok, and the subgrid(3x3 square). I have no clue how I am going to get this done, all I know is I need a 2D Array! Sorry for the essay but can you guide me in the right direction?
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,433
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 259
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: Help a lurker

 
0
  #2
Oct 3rd, 2006
I don't really know too much about how this game works, and don't really have the time or desire to investigate it at the moment, but a quick search turned up this:

http://today.java.net/pub/a/today/20...s-in-java.html

This may be a bit more involved than you need, and it is more for generating and solving rather than checking, but it should definately help. Then again, it may be more than you really want.

Have fun. :-)
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 3
Reputation: kulandai is an unknown quantity at this point 
Solved Threads: 0
kulandai kulandai is offline Offline
Newbie Poster

Re: Help a lurker

 
0
  #3
Oct 31st, 2006
Check this:
http://kulandai.blogspot.com/2006/10...va-source.html

Originally Posted by desi_programmer View Post
Please help! I know I don't post here much, in fact, I don't post here at all, but this does not mean I am just some noob trying to get some easy code. I have been in programming for two years, and signed up to this website about the same time. I signed up because I was interested in programming, and thought I could make some useful contributions. Well, I was wrong! You guys knew way more than I do, and still do, as I am still a beginner Java programmer. So, I decided I would just lurk and watch conversations to try and gather up as much info as possible, and it helped, getting me through some tough programs. I was confident to say that I never had to ask for help on anything, because most of the time I could figure it out myself using the knowledge I gained with experience and by visiting this site. Well, that has changed!

I have been assigned a sudoku program that must check the answers of a Sudoku puzzle. Basically, the teacher inputs 9 rows and 9 columns of numbers, and the output must show if the row is ok(meaning none of the same numbers in the row), the column is ok, and the subgrid(3x3 square). I have no clue how I am going to get this done, all I know is I need a 2D Array! Sorry for the essay but can you guide me in the right direction?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC