On the Subject of Truly Winning The Wire

The rat's nest of flowcharts looks a little less complicated now.

D3 = P/R/O Else
W = G/A/P Else W = G/A/P Else
D1 = B/G/R D2 = O/A/B MSD of (3×modules + ser + par + RJ + DVI ports) (ser + par + RJ + DVI ports + displayed #) % 10 ((4×port plates) % 7 + 2×(displayed# % 2)) % 10 (button presses + 2×inds) % 6
Else (4×port plates) % 10 ((ser + par + RJ + DVI ports + 1) × button presses) % ((displayed# % 3) + 4) (lit inds × (unlit inds + modules)) % 9 (2×inds + displayed# × lit inds) % 9
Else D2 = O/A/B (inds + displayed# % 3) % 10 (4×lit inds) % 5 MSD of ((6 × displayed# × unlit inds) + modules) (2 × inds × unlit inds × displayed#) % 8
Else ((6×displayed# + 4×port plates) − displayed# % 3) % 10 (2 × inds × (ser + par + RJ + DVI ports)) % 10 ((6×displayed# + 4×port plates + modules) % 7) + 2 (((displayed# % 3) + displayed#) × button presses) % 8