Thread: 3 dimentional arrays

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #31
    Registered User
    Join Date
    Apr 2019
    Posts
    808
    i was going to do something along the lines of
    Code:
    while (NumcellsSolved < 81 )
        {
            int x = NumcellsSolved;
            NumcellsSolved += NakedSingles( PossibleNums, Solution );
            NumcellsSolved += HiddenSingles( PossibleNums, Solution );
            //printf("number of solved cells is %d\n", NumcellsSolved);
            while ( 1 )
            {
                   if ( LockedNumbers ) { x = 0; break; }
                   if ( some other functions )  { x = 0; break; }
                   break; //no x = 0 here so outer loop breaks
            }
            if (x == NumcellsSolved ) break;
        }
    all the functions inside the while (1) loop will do is eliminate possible numbers it is down to naked and hidden singles to solve the grid
    Last edited by cooper1200; 06-18-2023 at 02:42 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with multi-dimentional arrays in C
    By thebenman in forum C Programming
    Replies: 3
    Last Post: 11-01-2014, 09:13 AM
  2. 2 dimentional array
    By gameover6005 in forum C Programming
    Replies: 2
    Last Post: 04-16-2013, 09:07 PM
  3. Accessing column data in multi-dimentional arrays
    By Darkmentor in forum C Programming
    Replies: 5
    Last Post: 11-30-2012, 11:51 AM
  4. 3 Dimentional string Arrays
    By paulroseby in forum C Programming
    Replies: 3
    Last Post: 11-27-2002, 06:53 AM
  5. moving n-dimentional arrays in c++
    By kknla in forum C++ Programming
    Replies: 0
    Last Post: 02-06-2002, 05:15 PM

Tags for this Thread