14,548,224 members

# Welcome to the Lounge

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 Re: Sounding off on the responses Member 798912219-Mar-18 3:50 Member 7989122 19-Mar-18 3:50
 Re: Sounding off on the responses W∴ Balboos, GHB19-Mar-18 3:51 W∴ Balboos, GHB 19-Mar-18 3:51
 Re: Sounding off on the responses Member 798912219-Mar-18 3:54 Member 7989122 19-Mar-18 3:54
 Re: Sounding off on the responses W∴ Balboos, GHB19-Mar-18 4:00 W∴ Balboos, GHB 19-Mar-18 4:00
 Re: Sounding off on the responses Member 798912219-Mar-18 4:15 Member 7989122 19-Mar-18 4:15
 Re: Sounding off on the responses PIEBALDconsult19-Mar-18 10:32 PIEBALDconsult 19-Mar-18 10:32
 Re: Sounding off on the responses PIEBALDconsult20-Mar-18 10:49 PIEBALDconsult 20-Mar-18 10:49
 Re: Sounding off on the responses W∴ Balboos, GHB21-Mar-18 1:17 W∴ Balboos, GHB 21-Mar-18 1:17
PIEBALDconsult wrote:
but I wonder what yours makes would have made of them.
(FIFY) It probably would have failed.

Sophistication was added in stages (based on ease of translating thought to code).
Single-Box Level:
1 - does row have 8 of 9 already determined? Fill in (the most obvious).
2 - intersection of two rows: does it exclude all but one value?
Sector Level (a 3x3):
3 - Exclude current contents of the 3x3, and does it force the single remaining value?
4 - Include intersecting row and column in this consideration.

This worked for easy and less easy boards. The difficulty of translating thought to code keeps increasing. If it failed to change anything on a pass then game-over.

Score-keeping for each box was kept with a bitmask for that box (I like bitmasks) that needed to match mask 1 - 9 (initialize to 0x1F). Could be checked, for example, via a switch.

But this was long ago and more sophisticated play put it out of its misery.

Ravings en masse^
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

 Re: Difficult-to-solve Sudoku wanted Fueled By Caffeine19-Mar-18 3:23 Fueled By Caffeine 19-Mar-18 3:23
 Re: Difficult-to-solve Sudoku wanted Member 798912219-Mar-18 3:33 Member 7989122 19-Mar-18 3:33
 Re: Difficult-to-solve Sudoku wanted PIEBALDconsult19-Mar-18 5:02 PIEBALDconsult 19-Mar-18 5:02
 Re: Difficult-to-solve Sudoku wanted Member 798912219-Mar-18 5:57 Member 7989122 19-Mar-18 5:57
 Re: Difficult-to-solve Sudoku wanted PIEBALDconsult19-Mar-18 8:59 PIEBALDconsult 19-Mar-18 8:59
 Re: Difficult-to-solve Sudoku wanted Dezhi Zhao19-Mar-18 5:21 Dezhi Zhao 19-Mar-18 5:21
 Re: Difficult-to-solve Sudoku wanted Member 798912219-Mar-18 6:16 Member 7989122 19-Mar-18 6:16
 Re: Difficult-to-solve Sudoku wanted Dezhi Zhao19-Mar-18 7:15 Dezhi Zhao 19-Mar-18 7:15
 Re: Difficult-to-solve Sudoku wanted Member 798912219-Mar-18 8:33 Member 7989122 19-Mar-18 8:33
 Re: Difficult-to-solve Sudoku wanted Dezhi Zhao19-Mar-18 9:21 Dezhi Zhao 19-Mar-18 9:21
 Re: Difficult-to-solve Sudoku wanted Dezhi Zhao19-Mar-18 7:30 Dezhi Zhao 19-Mar-18 7:30
 Re: Difficult-to-solve Sudoku wanted Member 798912219-Mar-18 9:18 Member 7989122 19-Mar-18 9:18
 Re: Difficult-to-solve Sudoku wanted Dezhi Zhao19-Mar-18 9:35 Dezhi Zhao 19-Mar-18 9:35
 Re: Difficult-to-solve Sudoku wanted PIEBALDconsult19-Mar-18 16:37 PIEBALDconsult 19-Mar-18 16:37
 Re: Difficult-to-solve Sudoku wanted Dezhi Zhao20-Mar-18 3:06 Dezhi Zhao 20-Mar-18 3:06
 Re: Difficult-to-solve Sudoku wanted PIEBALDconsult19-Mar-18 10:34 PIEBALDconsult 19-Mar-18 10:34
 Kid Sister Safe These Days... "mega"-in-a-fake-beard18-Mar-18 23:17 "mega"-in-a-fake-beard 18-Mar-18 23:17
 Last Visit: 3-Jun-20 16:37     Last Update: 3-Jun-20 16:37 Refresh � Prev1...3843384438453846384738483849385038513852 Next �