On the Subject of 10-btn Color Codes

english is hard ._.

  • Starting Rule (applied twice, at start & finish):
    • Stage 1: SN last#
    • Stage 2: SN sum of all numbers. Use least significant digit.
  • Color cycle Order: Red, Green, Blue.

Note:

  1. Stage 2 rules reading order: Upwards (Stage 1: Downwards)
  2. Buttons are numbered in reading order (1 to 10).
# IF true: THEN do:
0. / All buttons +1 except for the button = starting rule# (0 becomes 10)
1. buttons: same color Change Right to Red.
(If Right was already red, change to Green) [once per row, leftmost]
2. Top row: ≥3 buttons are the same color Of those buttons, 1st: +1 & 2nd: +2.
3. / Switch 1st & 4th col, switch 3rd & 5th col, swap 2nd col top & bottom color.
4. Entire row: same color 1st, 3rd, 5th in that row +1 [once per row]
5. buttons: same color SN last# odd: Change (Top,Bottom) to (Blue,Red)
SN last# even: (Top,Bottom) to (Blue,Green)
[can be applied to all 5 cols]
6. 0 Red buttons Change 2nd, 6th, 9th button to Red.
7. ≥6 Green buttons 1st green: +2; 3rd green: +1;
4th green: +2; 8th green: Blue (if exists).
8. 3×1 grid: same color Middle +1. [once per row, leftmost]
9. 2×2 grid: same color top-left & bottom-right both +2.
[applied at most once, leftmost]

* / in “IF true” column means always true.

Notations used:

  • : Horizontally adjacent
  • : Vertically adjacent
  • +1: press once
  • +2: press twice
  • SN: Serial Number
  • rule#: rule number
  • last#: last digit/number
  • col: column
  • [once per row]: Rule can only be applied once on the top row and once on the bottom row.
  • [leftmost]: Apply the rules/changes only to the leftmost occurrence.