I have a command that has 4 actions
each action has on/off states
so a command could consist of turn left and walk forward
or if walk forward is turned off then it would just be turn left
turn left and turn right could be turned on at the same time, although it would be pointless
So, the question is, how would I get every combination of on/off for 4 actions?
for example if there were 2 actions the 4 possible commands would be:
The only way i can think of doing it would be to make a byte class because bytes are the best way to represent on/off states that I can think of.