Skip to main content

Debate assignment

The infamous Dwarf-Hat riddle

Choose from Bertrand Russell, John von Neumann and Leonhard Euler

Grade 8MathCommunity

A ready-made debate for Grade 8, shared by a teacher on Humy. Students argue a position against one of 3 AI figures in a live chat. Humy grades the conversation against the rubric below.

Free teacher account · 20 AI messages a month · No credit card

Format
Debate
Grade
8
Grading
Per criterion

The infamous Dwarf-Hat riddle

Preview

Interact responsibly with the AI and verify facts. Note that teachers have access to these conversations.

Hello, I'm Bertrand Russell. I'm ready for our debate. Make your opening argument.

Message Bertrand Russell…
Preview of the student view · Click anything to try it in Humy

The assignment

Introduction to the Dwarves and Hats Puzzle

Imagine a group of dwarves who are about to take part in a strange challenge. They must stand in a straight line, one behind another, and each dwarf must wear a hat. Every hat has a particular colour, but the dwarves do not know which colour hat they themselves are wearing.

The rules are simple:

  • Each dwarf can see the hats of everyone standing in front of them, but cannot see their own hat or the hats of anyone behind them.
  • The dwarves can hear the answers given by the dwarves in the back of them.
  • Before the challenge begins, the dwarves are allowed to discuss and agree on a strategy. They can plan together as much as they like.
  • Once they are standing in line and wearing their hats, they cannot communicate with one another freely. They can only answer questions asked by the puzzlemaster.
  • The puzzlemaster asks each dwarf, one at a time, starting with the dwarf at the back of the line and moving towards the front.
  • Each dwarf must announce the colour of their own hat. If the answer is correct, they survive. If it is incorrect, they die.

The important thing is that the dwarves must agree on their strategy beforehand. Once the challenge starts, they cannot change their plan or give one another additional information beyond their answers.

The challenge

The puzzle has four increasingly difficult versions.

1. Two dwarves, two hat colours

There are only two dwarves, standing in a line, and their hats can be either red or blue.

The first dwarf can see the second dwarf's hat, but the second dwarf cannot see any hats.

What strategy should they agree on beforehand to guarantee that as many dwarves as possible survive, regardless of which colours the hats turn out to be?

2. Ten dwarves, two hat colours

Now imagine there are ten dwarves instead of two. They are still wearing either red or blue hats, and they are standing in a line.

They must agree on a strategy that maximises the number of survivors in the worst possible situation. In other words, they want to guarantee as many survivors as possible, even if the hat arrangement is particularly unfortunate.

3. Ten dwarves, five hat colours

The situation is almost the same, except that hats can now have five different colours instead of just two.

How does having more possible colours change the best strategy? How many dwarves can they guarantee will survive?

4. Infinitely many dwarves

Finally, imagine that there are infinitely many dwarves standing in the line. They still follow the same rules, but now they are allowed to use a mathematical principle called the axiom of choice when agreeing on their strategy.

Can they guarantee that all but a finite number of dwarves survive? Can they do even better?

The role of the axiom of choice

The final version introduces an idea from mathematics that might initially seem unrelated to hats and dwarves.

The axiom of choice is a principle that allows us to select one element from each of an arbitrary collection of non-empty sets, even when there are infinitely many sets and no explicit rule for making the selections.

In this puzzle, it allows the dwarves to agree on a strategy based on grouping together certain infinite sequences of hat colours. They can choose one representative sequence from each group and use those representatives as a shared reference system.

The surprising part is that this strategy relies on a mathematical assumption that cannot generally be replaced by an ordinary, explicitly described procedure.

The puzzle therefore connects a seemingly simple guessing game with some deep ideas about information, probability, infinity, and the foundations of mathematics.

The central question throughout all four versions is: How can the dwarves use the information they can see, together with the answers given by those before them, to maximise the number of survivors?

Research the ideas, draw small examples, and prepare a claim, evidence, reasoning, and a reply to a likely objection. Debate respectfully: listen, respond to your opponent’s counterpoint, and defend or revise your claim.

Select your figure and click “start assignment” to begin the debate.

Rubric

Humy scores the conversation against this rubric.

Grade 8 · Claim–Evidence–Reasoning · 20 points

Score the student’s arguments and replies, not the AI figure’s questions or answers. For each criterion, choose the one level that best matches the student’s work.

1. Two-Dwarf Strategy

  • 4 points — Shows how the first answer lets the second identify their hat; guarantees one survivor.
  • 3 points — Gives a working strategy and guarantee with a small reasoning gap.
  • 2 points — Suggests a useful first answer but does not show how the second uses it.
  • 1 point — Makes a plausible guess without a guaranteed strategy.
  • 0 points — No relevant strategy or an entirely incorrect one.

2. Ten Dwarves, Two Colors

  • 4 points — Explains a parity signal and how later dwarves use earlier answers to guarantee nine survivors.
  • 3 points — Gives a workable parity strategy with a minor gap in how it is decoded.
  • 2 points — Identifies parity but does not show how it protects later dwarves.
  • 1 point — States “nine survive” without a working method.
  • 0 points — No relevant strategy or an incorrect guarantee.

3. Ten Dwarves, Five Colors

  • 4 points — Assigns values to five colors; explains a sum modulo five and how it guarantees nine survivors.
  • 3 points — Presents a workable five-color signal with a minor decoding gap.
  • 2 points — Proposes a five-color code but cannot show why it works.
  • 1 point — Reuses the two-color rule without adapting it.
  • 0 points — No relevant method or an incorrect guarantee.

4. Worst-Case Proof

  • 4 points — Shows why the first dwarf cannot know their own hat and why the finite strategies therefore achieve the best possible guarantee.
  • 3 points — Explains the first dwarf’s risk and supports the optimality claim.
  • 2 points — Recognizes the risk but gives an incomplete worst-case argument.
  • 1 point — Claims a strategy is best without addressing an unfavorable hat arrangement.
  • 0 points — No worst-case reasoning or claims every dwarf is guaranteed to survive.

5. Infinity, Choice, and Debate

  • 4 points — Explains finite-difference groups, choice of representatives, a justified survival guarantee, and choice’s limits; supports a claim and answers an objection.
  • 3 points — Connects chosen representatives to a valid guarantee and gives a reasoned reply, with one minor gap.
  • 2 points — Describes choice or a survival claim but leaves the connection unclear; reply is limited.
  • 1 point — Mentions infinity or choice without a supported strategy or meaningful reply.
  • 0 points — Does not address the infinite case or engage with an objection.

How to Calculate Your Final Score

Add the points earned across the five criteria for a total out of 20. Award 0 points for any criterion with no relevant work. An empty submission or one that does not attempt the hat puzzle earns 0 out of 20. For the infinite case, accept a correctly justified guarantee that only finitely many dwarves may be wrong; accept a stronger guarantee only if the student explains how the answers communicate enough information to achieve it. Do not award points for the AI figure’s contributions.

The 3 historical figures in this assignment

Students choose one of these figures to talk to. Each is an AI version grounded in a curated biography and selected historical sources. As with any AI, students should check important claims.

In your classroom

Ready for your class in three steps.

  1. Open it in Humy

    Create a free teacher account, open this assignment and choose Copy to my assignments to make it yours.

  2. Share the link

    Students open it and type their first name and last initial. No email, no password.

  3. Humy grades the conversation

    Each chat is scored against the rubric, with feedback for each criterion. You see every result.

Open this assignment in Humy

Signed up but don't see it? Open Assignments → Community library.

Trusted by educators worldwide

Conversations
375,000+
Real exchanges between students and historical figures
Messages exchanged
4,142,000+
Across every figure, classroom and language
Historical figures
100,000+
Each informed by a curated biography and selected sources
Languages supported
50+
From English and Spanish to Arabic and Korean

Paying customers

Used by 98 schools and universities

Partner school logo
Tecnológico de Monterrey logo
Hyper Island logo
Partner school logo
Chambersburg Area School District logo
Broward County Public Schools logo
Nebo School District logo
National Louis University logo
South Florida PBS logo
Punahou School logo
University of Wisconsin–River Falls logo
Partner school logo
Partner school logo
Archbishop Mitty High School logo
Kingsburg High School logo
Norwalk Public Schools logo
Partner school logo
Connections logo
Partner school logo
Moore Public Schools logo
Partner school logo
Partner school logo
Partner school logo
Partner school logo
Robbinsville Public Schools logo
Partner school logo
Partner school logo
Partner school logo
Tecnológico de Monterrey logo
Hyper Island logo
Partner school logo
Chambersburg Area School District logo
Broward County Public Schools logo
Nebo School District logo
National Louis University logo
South Florida PBS logo
Punahou School logo
University of Wisconsin–River Falls logo
Partner school logo
Partner school logo
Archbishop Mitty High School logo
Kingsburg High School logo
Norwalk Public Schools logo
Partner school logo
Connections logo
Partner school logo
Moore Public Schools logo
Partner school logo
Partner school logo
Partner school logo
Partner school logo
Robbinsville Public Schools logo
Partner school logo
Partner school logo

What educators are saying

“We enjoyed the program last year and used it frequently.”
“My students say it’s a welcome change of pace. I’m not a fan of the “sage on the stage” model, so I try to incorporate research-oriented and self-paced activities. With Humy, students have to take charge of their learning. They’ve become more adept at critical thinking, forming better questions, and improving their reading comprehension. The interview feature has been my go-to tool. I create assignments where students must ask historical figures a set number of questions, then summarize the responses to ensure they’re truly absorbing the material. This approach lets them actively explore the past rather than passively consuming information.”
“Humy has helped me bring historical figures, sometimes long past, to life. When my students interact with these figures in real-time, it eliminates some of the perceived “ancient” characteristics of my curriculum. This has shifted my students’ thinking away from viewing history as abstract or irrelevant. Real-time interactions make historical figures relatable, even allowing students to ask off-topic questions that help put historical lives in a more relevant context for 13-year-olds. The feature I use the most is the interview feature. After teaching a topic, most recently Gandhi and Joan of Arc, I have the students ask pointed, focused questions. We practice good conversation techniques beforehand, teaching them to listen (or read) carefully and formulate thoughtful follow-up questions rather than just interrogating. It helps students practice effective conversation skills.”

FAQ

Frequently asked questions

What do students do in "The infamous Dwarf-Hat riddle"?
They choose one of 3 AI figures, then read the task and argue their position in a live chat. When they finish, Humy scores the conversation against the rubric with feedback for each criterion.
How is it graded?
Automatically against the rubric on this page. Each criterion gets a score and written feedback that points to the student's own work. You see every result. Students see their scores too.
Who made this assignment?
A teacher on Humy who shared it with every school. Shared assignments are listed only after they pass Humy's automated content review, and Humy can take one down if it's reported.
Can I change it for my class?
Yes. Open it in Humy and choose Copy to my assignments. You get your own copy of the task, rubric, grade and questions to change before you share it.
Do my students need accounts?
No. Students open the link you share and type their first name and last initial. No email, no password.
Is Humy free to try?
Yes. A free teacher account includes 20 AI messages a month, shared with your students, plus all five assignment formats and auto-grading. No credit card.
Is Humy.ai safe and compliant for schools?
Yes. Humy.ai is used by more than 100 schools, universities and organisations. The platform is FERPA- and GDPR-aligned, supports SSO, and offers an IT-approval pack tailored for school procurement teams.

Ready when you are

Give this assignment to your class.

Free teacher account · 20 AI messages a month · No credit card.