Thread: 8 queens problem in C

  1. #1
    Registered User
    Join Date
    Apr 2011

    8 queens problem in C

    Last edited by reds; 04-26-2011 at 02:21 PM.

  2. #2
    Registered User
    Join Date
    Nov 2010
    Long Beach, CA
    Hmm...did that code by any chance come from one of these two sites?

    It looks suspiciously similar.

    If you're taking a class that requires you to solve the 8 queens problem, you certainly can write a loop and ask for user input. I strongly suggest you take time to understand the 8 queens problem and some chess basics, if you don't know them already. Then, think about a solution to the problem, and see what you can code up on your own to find just one solution to the problem. It will give you a much better idea of how to adapt the algorithm to find multiple solutions. Here are a couple sites to get you started:

    EDIT: And when you come back with your attempt at this solution, please format your code decently. The mess you posted makes me want to stab my eyes out.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. N-Queens problem with stacks
    By SpiffyEh in forum C++ Programming
    Replies: 0
    Last Post: 10-26-2009, 01:00 AM
  2. Eight Queens Problem...Tried Everything.
    By Kiros_Xannon in forum C++ Programming
    Replies: 6
    Last Post: 09-27-2009, 02:46 PM
  3. Problems with the eight queens problem
    By Wicket in forum C++ Programming
    Replies: 1
    Last Post: 06-12-2008, 09:29 AM
  4. 8 Queens problem
    By Dashing Boy in forum C++ Programming
    Replies: 14
    Last Post: 10-15-2007, 12:12 PM

Tags for this Thread