Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Zombies and Binary

Zombies and Binary

You may not use the PHP bitwise operators but every conditional you do is binary logic. These boolean comparisons underpin every-day programming and they can also be modelled in Minecraft. In fact, Minecraft is also a great place to model the internals of many common electronic components!

Avatar for Christopher Pitt

Christopher Pitt

October 22, 2014
Tweet

More Decks by Christopher Pitt

Other Decks in Programming

Transcript

  1. php > if (($one and $two) and $three) php >

    print "success"; this is false...
  2. php > if (($one and !$two) and $three) php >

    print "success"; success So we invert it!
  3. Minecraft does: allow us to model logic (by comparison) help

    us to think visually about control flow
  4. accepts 1 input accepts 3 selection pins (high/low) passes the

    1 input through to one of 8 outputs, depending on on the selection pins