In the Blender game engine you can create logic circuits in logic editor. I saw some unnecessarily complicated logic circuits so I decided to write something about the controllers.
Blender has logic gates in middle pannel. The gates are: AND, OR, NAND, NOR, XOR, NXOR. You always use that, when you need to do some logic of the character or AI or something.
The logic circuits can by minimized with Karnaugh map, but it is for bigger circuits. On the output of the logic gates can by logic 1 or logic 0.
AND: The output of AND gate is logic 1 only , if all entrances of the gate are logic 1.
OR: The output of OR gate is logic 1 only, if at least one of its inputs is logic 1.
NOR: The output of NOR gate is log.1 only, if the all entrances of the gate are logic 0.
NAND: The output of NAND gate is always logic 1, if at least one of the input of the gate is logic 0.
XOR: The output of XOR gate is log.1, if the inputs A and B has different levels. In other words, the output of XOR gate is log.1 only, if at least one of its inputs is logic 1. (similar to OR gate), but if not logic 1 on both inputs simultaneously (exclusivity).
More details about Logic gates you can find there:
And about Karnaugh map you can find informations there
Sorry for poor english:spin: