Differentiating Inclusive from Exclusive Or
Play the “if you have brown hair stand up” game.

For the introductory lesson. We use this to introduce selection (if statements), and a little bit of boolean logic.


  “Stand up if you have got brown hair.”
  “Sit down.” look around “Stand up if you have blue eyes.”
  …
  With out asking them to sit down “Stand up if you …”
  Address why some people are still standing, are they correct [yes], or are the seated people correct [no]. Why? [because I did not ask them to sit].
  …
  “stand up if you have brown hair or you are …” (this is where we start to cover Boolean logic, I have only done and, or, not).


In another lesson you could add xor, nand, nor. 

Xor examples


  “if you have blond hair or you have blue eyes stand up”
  “if you have blond hair xor you have blue eyes stand up”