# 规划游戏

规划游戏是极限编程（XP）的规划实践，是一种结构化的协商过程：客户编写并排列所需功能的描述（称为用户故事）的优先级，程序员估算实现这些功能所需的工作量，团队据此将业务价值与开发成本结合起来选择工作。<sup>[1](https://www.jamesshore.com/v2/books/aoad1/the_planning_game)</sup><sup> • </sup><sup>[2](https://www.easytechjunkie.com/what-is-the-planning-game.htm)</sup> 这一名称来自经济学：在博弈中，参与者选择行动，而收益取决于所有参与者的行动；此处借用以表示一种结构化方法，从现有信息中制定尽可能最佳的规划。<sup>[1](https://www.jamesshore.com/v2/books/aoad1/the_planning_game)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 极限编程的核心实践，在肯特·贝克（Kent Beck）与马丁·福勒（Martin Fowler）的《规划极限编程》（2000）中有所描述，该实践源自XP诞生的C3工资系统项目<sup>[3](https://www.martinfowler.com/books/pxp.html)</sup> |
| 两个层次 | 发布规划，决定软件将具有哪些功能以及大致需要多长时间；迭代规划，安排下一个短开发周期的工作<sup>[2](https://www.easytechjunkie.com/what-is-the-planning-game.htm)</sup> |
| 专长分工 | 程序员进行估算，因为他们了解成本；客户排列优先级，因为他们了解价值；每一组在其自身领域拥有最终决定权<sup>[1](https://www.jamesshore.com/v2/books/aoad1/the_planning_game)</sup> |
| 节奏 | 在一种常见表述中，每2周开发人员估算候选功能，客户根据业务价值选择2周的功能<sup>[4](https://sites.cs.ucsb.edu/~cappello/50-2007-Winter/lectures/extremeProgramming/PlanningGame.html)</sup> |
| 估算尺度 | 故事以理想编程日估算，通常成本为1、2或3；更大的故事由业务方拆分<sup>[5](https://c2.com/ppr/wiki/ExtremeProgrammingRoadmap/PlanningGame.html)</sup> |
| 产出 | 一份单一的故事优先级列表；即使优先级相同的故事也必须排出先后顺序<sup>[1](https://www.jamesshore.com/v2/books/aoad1/the_planning_game)</sup> |
| 相关技术 | 规划扑克（Planning Poker），由格伦宁（Grenning）于2002年创建的专家判断估算技术，广泛用于Scrum和XP中<sup>[6](https://www.sciencedirect.com/science/article/pii/S0164121212001021)</sup> |

## 游戏如何进行

XP假设客户掌握关于价值的最多信息，即什么最能服务于组织；程序员掌握关于成本的最多信息，即实现和维护功能需要什么。由于每一个做某事的决定同时也是不做其他事的决定，游戏需要两个群体共同参与。基本循环是：任何人创建一个故事或选择一个未规划的故事；程序员进行估算；客户按相对优先级将其放入规划中；重复直至所有故事都被估算并安置。细节是灵活的，例如程序员可以一次性估算一叠故事以供后续排定优先级，只要程序员负责估算、客户负责排定优先级即可。<sup>[1](https://www.jamesshore.com/v2/books/aoad1/the_planning_game)</sup>

**用户故事。** 用户故事是对客户期望的最终结果的简短描述，通常写在单独的索引卡上，是客户与开发者之间对话的摘要，捕捉需求的本质。故事概括的是持续进行的对话：具体细节会随时间变化并逐步细化。为了规划，团队需要对需求有足够的了解以便估算，但不需要实际细节，因为需求细节会随着客户看到项目发展而变化，过早捕捉细节是浪费时间。<sup>[2](https://www.easytechjunkie.com/what-is-the-planning-game.htm)</sup><sup> • </sup><sup>[4](https://sites.cs.ucsb.edu/~cappello/50-2007-Winter/lectures/extremeProgramming/PlanningGame.html)</sup>

**拆分与探针。** 大的故事容易被低估，因此被拆分为较小的故事以获得更好的估算。如果团队了解不够，连一个小故事都无法估算，就运行一个探针——对未知事物最简单可能版本的原型，例如先让一个简单的数据库运行起来，再估算依赖于它的工作。<sup>[4](https://sites.cs.ucsb.edu/~cappello/50-2007-Winter/lectures/extremeProgramming/PlanningGame.html)</sup>

**估算与速度。** 故事以理想编程日而非实际时间估算，估算按定义是在信息不完整的情况下做出的预测。<sup>[7](https://www.extremeperl.org/bk/release-planning.html)</sup> 在第一个迭代之后，团队知道了自己的速度（以每周完成的工作单位数衡量），并使用测得的速度来决定后续每个迭代能容纳多少工作。<sup>[8](https://cs.millersville.edu/~wkillian/archive/2020/fall/csci420/resources/files/Processes-05-Extreme-Programming.pdf)</sup> 当客户问为什么某个估算偏高时，推荐的回答是用业务术语描述哪些容易、哪些困难，这可能揭示更便宜的替代方案；《敏捷开发的艺术》的合著者詹姆斯·肖尔（James Shore）将由此节省的时间称为“协作的奇迹”。<sup>[1](https://www.jamesshore.com/v2/books/aoad1/the_planning_game)</sup>

## 发布规划与迭代规划

游戏在两个层次上运作。发布规划是初始阶段，团队确定软件将具有哪些功能以及开发需要多长时间；客户可以在任何时候创建新故事。<sup>[2](https://www.easytechjunkie.com/what-is-the-planning-game.htm)</sup> 迭代规划重新评估项目并安排即将到来的迭代：客户与开发者会面，开发者估算故事需要多长时间，客户可能被要求详细说明或将故事拆分为更小的故事。<sup>[9](https://www.oreilly.com/library/view/extreme-programming-pocket/9781449399849/ch08.html)</sup> 一些XP描述对两种游戏的分配有所不同：一份大学课程描述将发布规划游戏分配给客户和开发者共同参与，将迭代规划游戏分配给开发者单独进行。<sup>[10](https://www.inf.ed.ac.uk/teaching/courses/inf2c-se/Lectures/2017/agile.pdf)</sup>

在一个迭代内，团队将故事分解为每个耗时数小时的开发者任务，开发者认领任务，每位开发者根据其在之前周期中完成了多少任务来在任务预算内工作，初始预算只是猜测。<sup>[4](https://sites.cs.ucsb.edu/~cappello/50-2007-Winter/lectures/extremeProgramming/PlanningGame.html)</sup> 用项目管理的术语来说，故事卡的功能很像工作包：它们促进估算、构建进度表、授权工作、驱动测试并报告状态，任何估算超过迭代长度的故事都被分解为两张或多张代表相同功能的新卡片。<sup>[11](https://www.pmi.org/learning/library/managing-software-development-using-extreme-programming-7662)</sup>

## 假设与局限

规划游戏依赖于XP的若干简化假设：以客户为中心的故事、客户能有效管理的故事依赖关系、客户能够明智地排定优先级、程序员能够做出一致的估算。它还假设团队能够增量地实现设计和架构，否则技术故事和棘手的依赖关系会累积，并且假设程序员是团队的唯一主导约束。<sup>[1](https://www.jamesshore.com/v2/books/aoad1/the_planning_game)</sup> 一种常见的替代方案是[甘特图](https://www.edgepedia.org/zh/gantt-chart)，它安排每个人将做什么，而规划游戏关注团队产出什么，将工作分工留给团队自身。<sup>[1](https://www.jamesshore.com/v2/books/aoad1/the_planning_game)</sup>

## 实证发现

关于该游戏及其衍生方法的研究主要涉及估算准确性。一项受控实验比较了层次分析法（AHP）与从XP中分离出来的规划游戏变体在需求优先级排序方面的表现，测量了时间消耗、易用性和准确性。<sup>[12](https://www.lunduniversity.lu.se/publication/3de8e6c5-6db2-4e7f-bc36-fe08bb9cf31c)</sup> 一项关于规划扑克用于用户故事估算的实证研究——规划扑克是在XP中对发布和迭代规划很重要的群体估算实践——发现规划扑克在大多数情况下改善了团队的估算表现，但在极端情况下增加了估算误差，尽管群体估算在许多情况下优于个体估算。<sup>[13](https://www.researchgate.net/publication/220925737_An_Empirical_Study_of_Using_Planning_Poker_for_User_Story_Estimation)</sup> 发表在《系统与软件杂志》上的一篇综述指出，尽管敏捷方法广泛使用，但关于规划扑克估算准确性的实证证据很少，且未发现对估算方法实际应用方式的深入研究。<sup>[6](https://www.sciencedirect.com/science/article/pii/S0164121212001021)</sup> 后来一项对规划扑克、桶系统（Bucket System）和亲和估算（Affinity Estimation）在八个学生团队中的比较发现，已发表的研究主要比较准确性，而效率（即每种方法消耗多少时间）并未成为关注重点。<sup>[14](https://arxiv.org/abs/2401.16152)</sup>

**规模化。** 关于大规模敏捷产品开发的研究报告称，围绕规划实践的协作本身成为一项挑战：一个挑战类型模型表明，估算、排定优先级和规划等技术能力依赖于上下文因素，包括团队建设、工作环境和团队精神，而对仪式达成一致在使这些能力发挥作用方面起着关键作用。<sup>[15](https://link.springer.com/chapter/10.1007/978-3-319-33515-5_3)</sup>

## References

1. [James Shore, Shane Warden (2008). The Planning Game, in *The Art of Agile Development*, O'Reilly.](https://www.jamesshore.com/v2/books/aoad1/the_planning_game)
2. [H.R. Childress (2024). What is the Planning Game? EasyTechJunkie.](https://www.easytechjunkie.com/what-is-the-planning-game.htm)
3. [Martin Fowler. Planning Extreme Programming, by Kent Beck and Martin Fowler (2000).](https://www.martinfowler.com/books/pxp.html)
4. [The Planning Game, Extreme Programming Practice lecture notes, UC Santa Barbara.](https://sites.cs.ucsb.edu/~cappello/50-2007-Winter/lectures/extremeProgramming/PlanningGame.html)
5. [Planning Game, Portland Pattern Repository ExtremeProgrammingRoadmap.](https://c2.com/ppr/wiki/ExtremeProgrammingRoadmap/PlanningGame.html)
6. [On using planning poker for estimating user stories, Journal of Systems and Software.](https://www.sciencedirect.com/science/article/pii/S0164121212001021)
7. [Extreme Perl, Chapter 4: Release Planning.](https://www.extremeperl.org/bk/release-planning.html)
8. [Software Development Processes: Extreme Programming, Millersville University course notes.](https://cs.millersville.edu/~wkillian/archive/2020/fall/csci420/resources/files/Processes-05-Extreme-Programming.pdf)
9. [Iteration Planning, Extreme Programming Pocket Guide, O'Reilly.](https://www.oreilly.com/library/view/extreme-programming-pocket/9781449399849/ch08.html)
10. [Extreme Programming, an agile software development method, University of Edinburgh lecture notes.](https://www.inf.ed.ac.uk/teaching/courses/inf2c-se/Lectures/2017/agile.pdf)
11. [Clement James Goebel (2003). Managing software development using extreme programming, PMI Global Congress 2003.](https://www.pmi.org/learning/library/managing-software-development-using-extreme-programming-7662)
12. [Requirements prioritisation: an experiment on exhaustive pair-wise comparisons versus planning game partitioning, Lund University.](https://www.lunduniversity.lu.se/publication/3de8e6c5-6db2-4e7f-bc36-fe08bb9cf31c)
13. [An Empirical Study of Using Planning Poker for User Story Estimation, AGILE 2006.](https://www.researchgate.net/publication/220925737_An_Empirical_Study_of_Using_Planning_Poker_for_User_Story_Estimation)
14. [Agile Effort Estimation: Comparing the Accuracy and Efficiency of Planning Poker, Bucket System, and Affinity Estimation methods, arXiv.](https://arxiv.org/abs/2401.16152)
15. [Scaling up the Planning Game: Collaboration Challenges in Large-Scale Agile Product Development, Springer.](https://link.springer.com/chapter/10.1007/978-3-319-33515-5_3)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Software engineering and development process › Development methodologies and project management

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/planning-game

English original: https://www.edgepedia.org/planning-game
