Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

[Java] Eight queens help?  RSS feed

 
nickolas joshua
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I'm a little new to Java and am in need of some help with my program, the goal is to make a program which will show all the "eight queens" solutions.

This is an example of one:
http://spaz.ca/aaron/SCS/queens/

I'm currently stuck however, and need help in getting mine working.

Here is the link to my source codes - http://rapidshare.de/files/18428259/files.zip.html (2 files included), both of which do not work at the moment, as i'm unsure of what i'm doing wrong.

If anyone can fix either of these programs, or tell me how to, then i'd appreciate it deeply.

All and any help is appreciated.

Thanks,
- Noxel
 
Campbell Ritchie
Marshal
Posts: 55698
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
It is difficult to help without knowing what goes wrong, and please put your code on the posting if possible. I cannot run your code because the hsa.Console class is not available.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a very interesting problem and quite common as a homework assignment for beginning programming courses. What problems have you encountered in writing this program? What is "not working" at the moment? Does your code compile? If not, what are the COMPLETE compiler errors? If it does compile, what happens when you run it? How does this differ from what you expect?

If you can provide some insight to what is happening, you might find that you solve the problem yourself. If not, then we can provide some hints and explanations to get you started in the right direction.

Good luck and keep coding!

Layne
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!