On the Subject of Sudoku
WE ARE DROWNING WITH THIS ONE 🗣️🔥🔥
Module contains the face of Teacher Sudoku.
If you selected the module, you can safely deselect it when either there's no text on the top of Sudoku's head or the last symbol is *.
Getting N
Getting the Configuration Array
First and second element: Get the numbers from the digits on the Sudoku's face. First number corresponds to first digit in reading order.
| 0 | 1 | 2 | 3 | 4 |
| 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 |
Third element: use the positions in the table. Name them p0 and p1, where p0 < p1. 10*p0 - p0*(p0-1)/2 + p1 - 1 is your element.
| 0 | 1 | ||
| 2 | 3 | 4 | 5 |
| 6 | 7 | 8 | 9 |
| 10 | 11 |
Fourth and fifth elements: use values of digits from Sudoku's face, subtract 1 from both of them. If second digit is bigger than first, decrement it.
Converting
Use this formula: N = (((G[0]*25+G[1])*66+G[2])*9+G[3])*8+G[4], where G is configuration array.