Boolean Logic - Nethack

Description

This activity takes some sample logic from the computer game Nethack and summarizes it as a boolean expression for the students to evaluate and discuss.

The game logic used in this activity covers the conditions under which the player can be turned to stone (petrified) by a cockatrice, one of the monsters in the game.

The purpose of this activity is to give the students practice reading and understanding (by re-stating in English) boolean expressions. In addition, it also serves as an example of how complex boolean expressions can be built up to solve "real-world" problems.

Prerequisites

Documents

Boolean logic in Nethack (PDF, SVG)

Teacher notes (PDF, ODT)
Background information on Nethack and detailed discussion for each of the boolean expressions.

Credits

These documents were created by Gary Kacmarcik.

These documents are licensed under a Creative Commons License Creative Commons Attribution-Share Alike 3.0 Unported License