# 珠玑妙算（桌游）

**珠玑妙算**（Mastermind）是一款双人破译密码桌游，1970年由以色列邮局局长兼电信专家莫迪凯·梅罗维茨（Mordecai Meirowitz）发明。游戏中，一方秘密设定一组有序的彩色棋子密码，另一方通过反复猜测、依据黑白反馈棋子的提示来推断答案。<sup>[1](https://mathworld.wolfram.com/Mastermind.html)</sup> 梅罗维茨于1971年纽伦堡玩具展（Nürnberg Toy Fair）首次展出该游戏，英国[莱斯特](https://www.edgepedia.org/zh/leicester)的玩具制造商英维克塔塑料公司（Invicta Plastics）的产品发掘人员在此发现了它，随后投入商业生产。<sup>[2](https://time.com/archive/6847542/modern-living-and-now-master-mind/)</sup> 上市两年内，该游戏在60个国家售出500万套。<sup>[2](https://time.com/archive/6847542/modern-living-and-now-master-mind/)</sup>

| 关键事实 | 详情 |
|---|---|
| 发明者 | 莫迪凯·梅罗维茨，以色列邮局局长兼电信专家，1970年<sup>[1](https://mathworld.wolfram.com/Mastermind.html)</sup> |
| 商业首秀 | 1971年纽伦堡玩具展；由莱斯特的英维克塔塑料公司生产，该公司持有珠玑妙算商标<sup>[2](https://time.com/archive/6847542/modern-living-and-now-master-mind/)</sup><sup> • </sup><sup>[3](https://www.worldradiohistory.com/Archive-Byte/70s/Byte-1977-10.pdf)</sup> |
| 标准规则 | 四个有序位置，六种颜色，允许重复，6<sup>4</sup> = 1,296种可能密码，十行猜测<sup>[4](https://puzzlegenome.org/en/games/mastermind/)</sup> |
| 反馈 | 黑钉表示颜色正确且位置正确，白钉表示颜色正确但位置错误，计数时考虑重复<sup>[1](https://mathworld.wolfram.com/Mastermind.html)</sup><sup> • </sup><sup>[4](https://puzzlegenome.org/en/games/mastermind/)</sup> |
| 最优策略 | 高德纳1976–77年的策略保证五步以内获胜，平均4.478次猜测；小山与赖1993年的策略平均4.340次<sup>[1](https://mathworld.wolfram.com/Mastermind.html)</sup> |
| 早期销量 | 两年内在60个国家售出500万套；自1975年春季起在美国售出85,000套，售价2.50至20美元<sup>[2](https://time.com/archive/6847542/modern-living-and-now-master-mind/)</sup> |
| 计算复杂性 | 求解广义珠玑妙算在计算上是困难的，即使只有两种棋子颜色<sup>[5](https://arxiv.org/abs/1111.6922)</sup> |

## 标准游戏规则

一方为出码者，秘密选择四个颜色组成的有序序列，每个颜色从六种可能颜色中选取，允许重复；另一方为破码者，尝试复现该序列。<sup>[1](https://mathworld.wolfram.com/Mastermind.html)</sup> 每次猜测后，出码者报告两个数字：颜色和位置均正确的棋子数，以及颜色出现在密码中但位置不同的棋子数。<sup>[1](https://mathworld.wolfram.com/Mastermind.html)</sup> 在实体棋盘上，这两个数字以黑白键钉的形式显示在猜测行旁边的小孔中；某个标记缺失并不表示所猜的某种颜色不在密码中。<sup>[2](https://time.com/archive/6847542/modern-living-and-now-master-mind/)</sup><sup> • </sup><sup>[11](https://www.buffalolib.org/sites/default/files/gaming-unplugged/inst/Mastermind%20Instructions.pdf)</sup>

计分时考虑重复：密码中的一种颜色不能被重复计算。系统先统计位置完全匹配的数量，然后仅对尚未使用的剩余颜色进行配对，因此密码中只有一个红色时，不会仅因猜测中有两个红色就产生两个白色指示。<sup>[4](https://puzzlegenome.org/en/games/mastermind/)</sup> 例如，若密码为(1,2,3,3)，猜测为(3,2,4,3)，则反馈为(2,1)：2和第二个3位置正确，第一个3颜色正确但位置错误。<sup>[1](https://mathworld.wolfram.com/Mastermind.html)</sup>

标准棋盘提供十行猜测，破码者若在这十次尝试内产生四个完全正确的指示即获胜；十行用尽则失败。<sup>[2](https://time.com/archive/6847542/modern-living-and-now-master-mind/)</sup><sup> • </sup><sup>[4](https://puzzlegenome.org/en/games/mastermind/)</sup> 之前的行保持可见，因此每次反馈都会缩小与现有证据相符的密码集合。<sup>[4](https://puzzlegenome.org/en/games/mastermind/)</sup> 找到密码后，双方交换角色，所需尝试次数较少者获胜。<sup>[2](https://time.com/archive/6847542/modern-living-and-now-master-mind/)</sup>

## 数学分析

1,296种可能的密码使珠玑妙算成为一个虽小但真实的搜索问题，自20世纪70年代以来一直吸引着持续的分析。斯坦福大学计算机科学家唐纳德·高德纳（Donald Knuth）在1976–77年发表于《休闲数学杂志》（*Journal of Recreational Mathematics*）的论文中证明，破码者总能在四次猜测后确定密码，即在五步以内获胜，所用策略为贪心策略，每一步都使剩余可能性数量最小化；当所有密码等概率时，该策略平均需要4.478次猜测。<sup>[1](https://mathworld.wolfram.com/Mastermind.html)</sup> 欧文（Irving，1978–79）随后找到了一种平均长度略小的策略。<sup>[1](https://mathworld.wolfram.com/Mastermind.html)</sup>

**平均情况最优。** 小山与赖于1993年描述了一种使平均猜测次数最小化的策略，平均需要4.340次，但在最坏情况下可能需要多达六次猜测；稍作修改可将平均值提高到4.341，但将最大值限制在五次。<sup>[1](https://mathworld.wolfram.com/Mastermind.html)</sup> 更简单、适合人类使用的策略表现得出奇地好：从剩余候选密码集中随机猜测平均需要4.638次，将每次猜测解释为一个数字并取下一个更大的相符候选者平均需要4.758次。<sup>[1](https://mathworld.wolfram.com/Mastermind.html)</sup>

**静态问题。** 在静态变体中（由[瓦茨拉夫·赫瓦塔尔](https://www.edgepedia.org/zh/vaclav-chvatal)于1983年研究），破码者必须事先提交所有猜测，看不到任何回答。大卫·L·格林威尔在1999–2000年证明，六次初始猜测足以确定任何密码；五次是否足够尚不清楚，穷举检查大约需要6<sup>20</sup>，即约3.7 × 10<sup>15</sup>次计算。<sup>[1](https://mathworld.wolfram.com/Mastermind.html)</sup> E·诺伊维尔特1982年发表于《运筹学杂志》（*Zeitschrift für Operations Research*）的论文统一了早期的策略构造方法，并将它们组合成一种略优于此前所有已发表策略的标准版本策略。<sup>[6](https://doi.org/10.1007/BF01917147)</sup>

**复杂性。** 对于棋子数和颜色数更多的广义版本，乔瓦尼·维列塔2011年的困难性结果即使在仅有两种可用棋子颜色的最严格设定下也成立，对于响应携带信息更少的单计数黑钉变体也同样成立。<sup>[5](https://arxiv.org/abs/1111.6922)</sup> 随后关于查询复杂性的工作，首次在排列游戏变体（密码和猜测均为排列）上改进了平凡的信息论下界。<sup>[7](https://arxiv.org/abs/1607.04597)</sup> 研究项目还构建了可配置工具，能为任意规则组合（如不同棋子数或颜色数）生成策略树，并测量其对获胜回合数的影响。<sup>[8](https://github.com/Tomboyo/mastermind)</sup>

## 变体与影响

英维克塔公司生产了四种不同型号的游戏，玩家可以随着技巧的提高转向更复杂的变体。<sup>[2](https://time.com/archive/6847542/modern-living-and-now-master-mind/)</sup> 已发表的变体改变了棋子数量（如五个或六个）或颜色数量（如八种或十种）。<sup>[9](https://dinogame.gg/blog/mastering-mastermind/)</sup> AB游戏变体使用四个棋子和十种可能颜色，而排列珠玑妙算是位置数等于颜色数的情况，此时密码和猜测均为排列。<sup>[10](https://www.sciencedirect.com/science/article/abs/pii/S0012365X20304398)</sup> 进阶游戏增加了空白密码位置。<sup>[4](https://puzzlegenome.org/en/games/mastermind/)</sup>

该游戏的商业成功迅速而广泛。1975年12月《时代》杂志报道，英国学校已在600名学生和教师中测试该游戏，奎西奈尔和J.L.哈米特等教育用品供应商推广其用于教授逻辑，一场全国性淘汰赛将50名决赛选手送往伦敦对决。<sup>[2](https://time.com/archive/6847542/modern-living-and-now-master-mind/)</sup> MathWorld指出，该游戏可能受到1960年代末麻省理工学院的J. M.格罗肖开发的程序*moo*的启发。<sup>[1](https://mathworld.wolfram.com/Mastermind.html)</sup> 其推理结构有一个直接的现代后裔：在一项益智游戏的机制比较中，Wordle与珠玑妙算已识别机制的共享比例为66.7%，包括固定的隐藏状态、自定节奏的顺序操作，以及考虑重复的位置匹配和残余匹配计分。<sup>[4](https://puzzlegenome.org/en/games/mastermind/)</sup>

## References

1. [Weisstein, Eric W. "Mastermind." MathWorld, Wolfram Research](https://mathworld.wolfram.com/Mastermind.html)
2. ["Modern Living: And Now, Master Mind," Time, December 1, 1975](https://time.com/archive/6847542/modern-living-and-now-master-mind/)
3. [W. Lloyd Milligan, Byte magazine, October 1977 (Invicta Plastics trademark notice)](https://www.worldradiohistory.com/Archive-Byte/70s/Byte-1977-10.pdf)
4. [Mastermind, Puzzle Genome Atlas (GAME-0065)](https://puzzlegenome.org/en/games/mastermind/)
5. [Viglietta, Giovanni. "Hardness of Mastermind," arXiv:1111.6922 (2011)](https://arxiv.org/abs/1111.6922)
6. [Neuwirth, E. "Some strategies for mastermind," Zeitschrift für Operations Research 26, B257–B278 (1982)](https://doi.org/10.1007/BF01917147)
7. ["Query Complexity of Mastermind Variants," arXiv:1607.04597](https://arxiv.org/abs/1607.04597)
8. [Tom Simmons et al., mastermind strategy-tree generator, GitHub](https://github.com/Tomboyo/mastermind)
9. ["Mastering Mastermind: Worst-Case Guessing Strategy," Dinogame GG](https://dinogame.gg/blog/mastering-mastermind/)
10. ["Bounds for the Static Permutation Mastermind game," Discrete Mathematics / ScienceDirect](https://www.sciencedirect.com/science/article/abs/pii/S0012365X20304398)
11. [buffalolib.org](https://www.buffalolib.org/sites/default/files/gaming-unplugged/inst/Mastermind%20Instructions.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 21, 2026 · Edited: Oct 15, 2026; Oct 21, 2026 · Last review: Oct 21, 2026*

Topic: 体育、游戏与休闲 › 棋牌与益智游戏 › 桌面游戏 › 现代设计师桌面游戏 › 推理与隐藏信息桌面游戏

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/mastermind-board-game

English original: https://www.edgepedia.org/mastermind-board-game
