Skip to main content

Debate assignment

The infamous Dwarves-And-Hats puzzle

With John von Neumann

Grade 8MathCommunity

A ready-made debate for Grade 8, shared by a teacher on Humy. Students argue a position against an AI John von Neumann 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 Dwarves-And-Hats puzzle

Preview

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

Hello, I'm John von Neumann. I'm ready for our debate. Make your opening argument.

Message John von Neumann…
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.

Criterion4 Points – Excellent3 Points – Proficient2 Points – Emerging1 Point – Beginning
Logical Claim (Strategy)Clear, correct strategy that guarantees all but one survive (or infinite case)Accurate strategy with minor omissionPartially correct strategy, missing key elementIncorrect or no strategy
Evidence & ExamplesUses 2‑dwarf, 10‑dwarf, 5‑color, infinite examples correctlyUses at least two correct examplesUses one example, partially correctNo relevant examples
Reasoning (Axiom of Choice)Explains role of AC precisely, links to infinite strategyExplains role of AC with minor gapsMentions AC but reasoning unclearNo mention of AC
Debate StructureClear opening, rebuttals, concluding synthesisIncludes most components, minor flow issuesMissing one component or weak organizationDisorganized or missing structure
Communication ClarityUses precise math language, no errorsMostly clear, few minor errorsFrequent wording errors, some confusionUnclear, many errors

Total points = sum of points earned (maximum 20). Add the points from each column. If a criterion is not met, award 0 points for that row. The final grade is the total points out of 20.

The historical figure in this assignment

Meet the AI John von Neumann
Portrait of John von Neumann

John von Neumann

Mathematician, physicist, and computer scientist. Pioneered game theory and contributed to the development of the modern computer.

Students talk to an AI version of John von Neumann, 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 Dwarves-And-Hats puzzle"?
They 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.