A "text" format of Denis Berthier 4-Grid Board

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

A "text" format of Denis Berthier 4-Grid Board

Postby RichardGoodrich » Wed Jun 25, 2025 2:58 pm

Denis Berthier DB, in his "Hidden Logic of Sudoku, Second Edition" HLS2 calls this an Extended Sudoku Board

I put this text grid here so I can remember and copy it! I just call it the: board

Code: Select all
 c1 = 1  2  3   4  5  6   7  8  9    n1 = 1  2  3   4  5  6   7  8  9
    .---------.---------.---------.     .---------.---------.---------.
 r1 | .  .  . | .  .  . | .  .  . |  r1 | .  .  . | .  .  . | .  .  . |
 r2 | .  .  . | .  .  . | .  .  . |  r2 | .  .  . | .  .  . | .  .  . |
 r3 | .  .  . | .  .  . | .  .  . |  r3 | .  .  . | .  .  . | .  .  . |
    :---------+---------+---------:     :---------+---------+---------:
 r4 | .  .  . | .  .  . | .  .  . |  r4 | .  .  . | .  .  . | .  .  . |
 r5 | .  .  . | .  .  . | .  .  . |  r5 | .  .  . | .  .  . | .  .  . |
 r6 | .  .  . | .  .  . | .  .  . |  r6 | .  .  . | .  .  . | .  .  . |
    :---------+---------+---------:     :---------+---------+---------:
 r7 | .  .  . | .  .  . | .  .  . |  r7 | .  .  . | .  .  . | .  .  . |
 r8 | .  .  . | .  .  . | .  .  . |  r8.| .  .  . | .  .  . | .  .  . |
 r9 | .  .  . | .  .  . | .  .  . |  r9 | .  .  . | .  .  . | .  .  . |
    '---------'---------'---------'     '---------'---------'---------'
 c1 = 1  2  3   4  5  6   7  8  9    n1 = 1  2  3   4  5  6   7  8  9
    .---------.---------.---------.     .---------.---------.---------.
 n1 | .  .  . | .  .  . | .  .  . |  b1 | .  .  . | .  .  . | .  .  . |
 n2 | .  .  . | .  .  . | .  .  . |  b2 | .  .  . | .  .  . | .  .  . |
 n3 | .  .  . | .  .  . | .  .  . |  b3 | .  .  . | .  .  . | .  .  . |
    :---------+---------+---------:     :---------+---------+---------:
 n4 | .  .  . | .  .  . | .  .  . |  b4 | .  .  . | .  .  . | .  .  . |
 n5 | .  .  . | .  .  . | .  .  . |  b5 | .  .  . | .  .  . | .  .  . |
 n6 | .  .  . | .  .  . | .  .  . |  b6 | .  .  . | .  .  . | .  .  . |
    :---------+---------+---------:     :---------+---------+---------:
 n7 | .  .  . | .  .  . | .  .  . |  b7 | .  .  . | .  .  . | .  .  . |
 n8 | .  .  . | .  .  . | .  .  . |  b8.| .  .  . | .  .  . | .  .  . |
 n9 | .  .  . | .  .  . | .  .  . |  b9 | .  .  . | .  .  . | .  .  . |
    '---------'---------'---------'     '---------'---------'---------'


The Verbosity (You can skip this part!)

There should be a another name for this besides DB's grids or board, but I am not sure other than "4-Grid" system? Perhaps DB-4G would be an option?

It is sudoku_board in the Python code of my biGSDK. The SDK part is for "Software Development Kit" The biG part is meant to be a recursive acronym. It is also what my friends call me. (And I hope my enemies don't call me!) My grandkids named me that because I am physically larger than their dad (my son). He is their little dad and I became the Big dad. I realized I was really not that big in the grand scheme of things!

So I changed the case to: biG Which depending on the day and circumstaces could be (you can pick your preference)
    big in God
    big into Grids
    berthier in Grids
When, I am working with it, I like to just call it the board

Hopefully it is clear that from top-down, left to right this represents the RCN, RNC, NCR, BNS grids. In geneal DB calls these abstract spaces" . DB insists on calling the NCR grid the CNR grid even though he prefers this representation for the symmetry of its appearance. Not sure why this makes any difference as I prefer to just call it NCR!

DB also refers to these as: RC-space, RN-space, NC-space*, BN-space
DB refes to the cells as: RC-cells, RN-cells, NC-cells*, BN-cells

* again DB prefers CN vs NC
Big1952
RichardGoodrich
 
Posts: 99
Joined: 12 December 2012
Location: Josephine, TX (north of Dallas, TX)

Re: A "text" format of Denis Berthier 4-Grid Board

Postby coloin » Wed Jun 25, 2025 7:17 pm

RichardGoodrich wrote:Hopefully it is clear that from top-down, left to right this represents ...

Please give an example how this works because it is not clear !
coloin
 
Posts: 2599
Joined: 05 May 2005
Location: Devon

Re: A "text" format of Denis Berthier 4-Grid Board

Postby denis_berthier » Thu Jun 26, 2025 8:08 am

.
SudoRules has commands to print the Extended Sudoku Board at any point of the resolution process.

Example from the User Manual, section 6.7:
Code: Select all
.......31.8..4.....7.......1.63...7.3............8....54....8.....6..2.....1.....

After Singles, the resolution state is automatically printed in the usual rc-space:
Code: Select all
   +----------------+----------------+----------------+
   ! 4    6    5    ! 8    279  29   ! 79   3    1    !
   ! 29   8    1    ! 2579 4    3    ! 6    259  2579 !
   ! 29   7    3    ! 259  1    6    ! 59   8    4    !
   +----------------+----------------+----------------+
   ! 1    29   6    ! 3    29   5    ! 4    7    8    !
   ! 3    259  8    ! 4    6    7    ! 1    259  259  !
   ! 7    259  4    ! 29   8    1    ! 3    6    259  !
   +----------------+----------------+----------------+
   ! 5    4    279  ! 279  3    29   ! 8    1    6    !
   ! 8    1    79   ! 6    579  4    ! 2    59   3    !
   ! 6    3    279  ! 1    2579 8    ! 579  4    579  !
   +----------------+----------------+----------------+


If you want it to be printed in the four 2D-spaces, just type (print-RS-all) and you'll get the 4 2D-views:
Code: Select all
standard rc-view:
Physical rows are rows, physical columns are columns. Data are digits.
   4         6         5         8         279       29        79        3         1         
   29        8         1         2579      4         3         6         259       2579     
   29        7         3         259       1         6         59        8         4         
   1         29        6         3         29        5         4         7         8         
   3         259       8         4         6         7         1         259       259       
   7         259       4         29        8         1         3         6         259       
   5         4         279       279       3         29        8         1         6         
   8         1         79        6         579       4         2         59        3         
   6         3         279       1         2579      8         579       4         579       

The following representations, first introduced in the "Hidden Logic of Sudoku"  (HLS, 2007),
may be used e.g. to more easily spot:
rn-, cn- or bn- bivalue pairs (also named bilocal pairs),
mono-typed-chains (the 2D-chains of HLS),
Hidden Subsets and Fishes (which will appear as Naked Subsets in the proper space).

rn-view:
Physical rows are rows, physical columns are digits. Data are columns.
   9         56        8         1         3         2         57        4         567       
   3         1489      6         5         489       7         49        2         1489     
   5         14        3         9         47        6         2         8         147       
   1         25        4         7         6         3         8         9         25       
   7         289       1         4         289       5         6         3         289       
   6         249       7         3         29        8         1         5         249       
   8         346       5         2         1         9         34        7         346       
   2         7         9         6         58        4         35        1         358       
   4         35        2         8         579       1         3579      6         3579     

cn-view:
Physical rows are columns, physical columns are digits. Data are rows.
   4         23        5         1         7         9         6         8         23       
   8         456       9         7         56        1         3         2         456       
   2         79        3         6         1         4         789       5         789       
   9         2367      4         5         23        8         27        1         2367     
   3         149       7         2         89        5         189       6         1489     
   6         17        2         8         4         3         5         9         17       
   5         8         6         4         39        2         19        7         139       
   7         25        1         9         258       6         4         3         258       
   1         256       8         3         2569      7         29        4         2569     

bn-view:
Physical rows are blocks, physical columns are digits. Data are positions in a block.
   6         47        9         1         3         2         8         5         47       
   8         2347      6         5         47        9         24        1         2347     
   3         56        2         9         567       4         16        8         1567     
   1         258       4         9         58        3         7         6         258       
   9         27        1         4         3         5         6         8         27       
   4         569       7         1         569       8         2         3         569       
   5         39        8         2         1         7         369       4         369       
   7         138       2         6         58        4         158       9         1358     
   2         4         6         8         579       3         79        1         579       


You can also choose only 1 specific view, e.g. (print-RS-rn):
Code: Select all
rn-view:
Physical rows are rows, physical columns are digits. Data are columns.
   9         56        8         1         3         2         57        4         567       
   3         1489      6         5         489       7         49        2         1489     
   5         14        3         9         47        6         2         8         147       
   1         25        4         7         6         3         8         9         25       
   7         289       1         4         289       5         6         3         289       
   6         249       7         3         29        8         1         5         249       
   8         346       5         2         1         9         34        7         346       
   2         7         9         6         58        4         35        1         358       
   4         35        2         8         579       1         3579      6         3579     


You can apply any of these commands at any time.

As for vocabulary, I don't "insist" on calling theses grids the NCR or the CNR grids: I've have always called them the four rc, rn, cn and bn views of the same resolution state or the rc, rn, cn and bn spaces or the four 2D-spaces; and the cells in them are the rc, rn, cn and bn cells.
.
denis_berthier
2010 Supporter
 
Posts: 4503
Joined: 19 June 2007
Location: Paris


Return to General