Sudoku Validation

Everything about Sudoku that doesn't fit in one of the other sections

Sudoku Validation

Postby Eltee27 » Tue Jan 16, 2018 1:06 am

Hello,

I have a very quick question regarding validating that my puzzles are solved correctly.

If I check that all the rows are unique, contain only the numbers 1-9 and don't have any duplicates. Then I do the same for all the columns. Do I need to do the same for the 3x3 boxes?

Shouldn't checking the rows and columns ensure that the boxes are also correct?
Eltee27
 
Posts: 2
Joined: 16 January 2018

Re: Sudoku Validation

Postby rjamil » Tue Jan 16, 2018 6:27 pm

Hi,

Short and quick reply is "No".

You need to check the 3x3 box as well for duplication as per standard Sudoku rules, i.e.,:

"The object is to fill all empty squares so that the numbers 1 to 9 appear exactly once in each horizontal row, vertical column and 3x3 box."

R. Jamil
rjamil
 
Posts: 730
Joined: 15 October 2014
Location: Karachi, Pakistan

Re: Sudoku Validation

Postby JPF » Tue Jan 16, 2018 9:49 pm

For a long reply, see here .
You need 21 checks. For instance : check all boxes , two rows in each band, and two columns in each stack.

JPF
JPF
2017 Supporter
 
Posts: 6125
Joined: 06 December 2005
Location: Paris, France

Re: Sudoku Validation

Postby Eltee27 » Wed Jan 17, 2018 2:03 am

Thank you both very much!
Eltee27
 
Posts: 2
Joined: 16 January 2018


Return to General