Sudoku: Difference between revisions
Content deleted Content added
Line 3,042: | Line 3,042: | ||
len col[] 810 |
len col[] 810 |
||
len box[] 810 |
len box[] 810 |
||
len grid[] 82 |
|||
# |
# |
||
func init . . |
func init . . |
||
for |
for pos range 81 |
||
if pos mod 9 = 0 |
|||
s$[] = str_split input " " |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
c = pos mod 9 |
|||
b = r div 3 * 3 + c div 3 |
|||
⚫ | |||
⚫ | |||
⚫ | |||
. |
. |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
. |
. |
||
grid[] &= 0 |
|||
. |
. |
||
call init |
call init |