# Knights, Knaves, and Normals Puzzle Generator

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

This Demonstration provides a generator of logic puzzles of the type knights, knaves, and normals. These puzzles are about an island in which some natives called "knights" always tell the truth, natives called "knaves" always lie, and "normals" sometimes lie and sometimes tell the truth. It is assumed that every inhabitant of the island is either a knight, a knave, or a normal. If an inhabitant makes a statement , then we may conclude that "if is a knight, then is true" and "if is a knave, then is false".

Contributed by: Izidor Hafner (March 2011)

Based on work by: Raymond M. Smullyan

Open content licensed under CC BY-NC-SA

## Snapshots

## Details

Statements are randomly generated and checked for uniqueness of the solution.

R. M. Smullyan, *What Is the Name of This Book?*, Englewood Cliffs, NJ: Prentice–Hall, 1978.

## Permanent Citation

"Knights, Knaves, and Normals Puzzle Generator"

http://demonstrations.wolfram.com/KnightsKnavesAndNormalsPuzzleGenerator/

Wolfram Demonstrations Project

Published: March 7 2011