On the Subject of Valves

Xoooooooooooooooooooooooooor

  1. ⚫⚫⚪
  2. ⚫⚫⚫
  3. ⚪⚪⚫
  4. ⚪⚪⚪
  5. ⚫⚪⚪
  6. ⚪⚪⚪
  7. ⚪⚪⚫
  8. ⚪⚫⚫
  9. ⚪⚫⚪
  10. ⚫⚫⚪
  11. ⚪⚫⚫
  12. ⚫⚪⚪
  13. ⚪⚪⚫
  14. ⚪⚫⚫
  15. ⚫⚪⚪
  16. ⚪⚪⚪
  17. ⚫⚫⚪
  18. ⚫⚫⚫
  19. ⚪⚫⚫
  20. ⚫⚫⚫
  21. ⚫⚫⚪
  22. ⚪⚫⚪
  23. ⚫⚪⚪
  24. ⚪⚪⚪
  25. ⚪⚫⚪
  26. ⚪⚫⚫
  27. ⚪⚫⚪
  28. ⚫⚫⚪
  29. ⚪⚪⚫
  30. ⚫⚫⚫
  31. ⚪⚪⚪
  32. ⚪⚪⚫
  33. ⚫⚫⚫
  34. ⚪⚫⚪
  35. ⚫⚪⚫
  36. ⚫⚫⚪
  1. Find the sum of serial# digits in the list on the left and let current# be this combination. If the sum is 0, skip all steps and press down valves 1 and 3.
  2. Take the first character of the serial#:
    • Number ⇒ move up by that many steps.
    • Letter ⇒ move down by A1Z26 % 10 steps.
    Let the combination given by the new position be new#.

    Compare current# and new# and look up the action in the table below.
    0 matchesMove one more in the direction moved; and reuse this table.
    1 matchcurrent# = ~new#
    2 matchescurrent# = new#
    3 matchesGo to step 3.
    Repeat this for all characters in the serial#.
  3. If the module’s knobs are silver: invert current#.
  4. Submit module# ^ current# by pushing down the resulting white valves.
^The xor operation. Using white as 1.
~The bitwise negation. E.g. ~⚫⚪⚫= ⚪⚫⚪
module#The colours of the valves on the module.