please look at my code and help me to see what is going wrong. gridcomopletion() had seemed to work, but at closer inspection, it is not correctly elimininating the possibilities from a square when it makes a deduction.
also rowscompletion() and rowselimination() do not work, as far as I can tell.
Also I would like to have a display function that will allow for 2x2, 3x3, and 4x4 minigrids (so 4x4, 9x9, and 16x16 gameboards respectively), but in a 16x16 gameboard that allows for 2 digit numbers, i am having trouble formatting the results correctly to allow for the additional space if needed, but also to fit the double thick bars in the correct spots. Any helps would be appreciated thanks.
Wow, that is a lot of code to ask people to debug for you. You might start by functionizing
a bit more. Your gridcompletion function has eight levels of nesting, 5 of which are for()
loops.
well I was able to reduce the level # of levels of nesting, but only by 1, by instead of for (int rgrids) and for (int cgrids) changing it to for (int grids = 1) yadayadayada and then calling int firstcol = firstcolofgrid() etc etc etc...
well could you at least look at my display function and give me some pointers on how I could implement it correctly? I want the double thick bars to differentiage between the minigrids, so for every 3 rows of numbers (each single line seperated by a line of underscores "_"), I want there to be a single line of whatever this thing is: char block2 = -78;
so far it works great right now when I'm working with a standard 9x9 Sudoku, but when i try to display a 4x4 or a 16x16, the blocks are off in a couple of places, and it gives me a headache to debug. I know I could do it, but it could save me a bit of time and $ as I'm having to use computers at a cyber cafe to do all my coding for the mean time.