Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Games & Chance 3 min read

Escape Rooms Are Constraint Satisfaction Problems

Logical deduction, not random guessing.

An escape room is a series of puzzles, each with constraints. Solving them is equivalent to a constraint satisfaction problem (CSP) in computer science.

CSP approach

Variables with domains, subject to constraints.

solution={x1,x2,…} s.t. all constraints satisfied\text{solution} = \{x_1, x_2, \ldots\} \text{ s.t. all constraints satisfied}

4-digit lock, clues narrow each digit

  1. 1

    Digit 1

    Clue says even → {0,2,4,6,8}

  2. 2

    Digit 2

    Sum of 1+2 = 7

  3. 3

    Digit 3

    Product of 2 and 3 = 12

  4. 4

    Solution

    Systematic elimination → one answer

Answer

Treat each clue as a constraint — systematic elimination beats random trying

The formula behind it

Multiplication

a×ba \times b
See the full formula, variables and more examples

The takeaway

Write down every clue and cross-reference — escape rooms reward logic, not speed.

Back to all stories