I saw these alternating Christmas lights:
The top image has all lights on, the bottom left image has odd-numbered lights on, and the bottom right image has even-numbered lights on.
The LEDS are joined by two enameled wires, and three AA batteries power the lot.
How does the controller turn the odd-numbered lights on and off?