On the Optimization of Simon Stashes
You either die as a hero or live long enough to become the villain.
For those familiar with the original manual.
(1st × 2nd) % 16 = ((1st % 16) × (2nd % 16)) % 16 = ANS
ANS = 8 × TR + 4 × BR + 2 × BL + TL
| Flash Position | Flashing Color | |||||
|---|---|---|---|---|---|---|
| Red | Green | Blue | Cyan | Magenta | Yellow | |
| 1st (SN Chr) | 1st | 2nd | 3rd | 4th | 5th | 6th |
| 2nd | Bat. | Bat. Holders | Ind. | Ports | Plates | Sum of Digits |
Quick Conversion Tables
| 0 | 0000 | 8 | 1000 |
|---|---|---|---|
| 1 | 0001 | 9 | 1001 |
| 2 | 0010 | 10 | 1010 |
| 3 | 0011 | 11 | 1011 |
| 4 | 0100 | 12 | 1100 |
| 5 | 0101 | 13 | 1101 |
| 6 | 0110 | 14 | 1110 |
| 7 | 0111 | 15 | 1111 |
| 0 | 0 | 9 | 9 | I | 18 | R | 27 |
|---|---|---|---|---|---|---|---|
| 1 | 1 | A | 10 | J | 19 | S | 28 |
| 2 | 2 | B | 11 | K | 20 | T | 29 |
| 3 | 3 | C | 12 | L | 21 | U | 30 |
| 4 | 4 | D | 13 | M | 22 | V | 31 |
| 5 | 5 | E | 14 | N | 23 | W | 32 |
| 6 | 6 | F | 15 | O | 24 | X | 33 |
| 7 | 7 | G | 16 | P | 25 | Y | 34 |
| 8 | 8 | H | 17 | Q | 26 | Z | 35 |