Simple dice

So how would i use the binary to control the sets of lights?