# 井字棋

**井字棋**（tic-tac-toe）是一种纸笔游戏，两名玩家轮流在 3 × 3 棋盘的格子里画 X 和 O，各自设法将自己的三个标记连成横、竖或斜的一行。在英式英语和[澳大利亚英语](https://www.edgepedia.org/zh/australian-english)中，它被称为 **圈叉棋**（noughts and crosses）。没有发明者个人的记载；该游戏已知最早的祖先是古罗马的三石棋（terni lapilli），而现代这种画 X 和 O 的形式则出现于 19 世纪的英国。<sup>[1](https://tictoe.org/blog/history-of-tic-tac-toe)</sup><sup> • </sup><sup>[2](https://tictactoefree.co.uk/who-invented-tic-tac-toe/)</sup>

| 关键事实 | 详情 |
|---|---|
| 最早的祖先 | 三石棋（terni lapilli，意为“三颗石子”），约公元前 1 世纪在古罗马流行，棋盘为 3 × 3 的格子，刻在罗马帝国各地的石头上<sup>[1](https://tictoe.org/blog/history-of-tic-tac-toe)</sup> |
| 罗马规则的差异 | 每位玩家只有三枚棋子，且在棋盘上滑动而非放置新标记<sup>[1](https://tictoe.org/blog/history-of-tic-tac-toe)</sup> |
| 名称的年代 | “Noughts and crosses”见于 1852 年；“tick-tack-toe”于 1892 年已有此称，更早的“tit-tat-toe”见于 1852 年<sup>[3](https://www.etymonline.com/word/tick-tack-toe)</sup> |
| 第一款电脑游戏 | OXO，1952 年由 A. S. 道格拉斯（A. S. Douglas）在剑桥为其人机交互博士论文而制作，在阴极射线管显示器上运行<sup>[1](https://tictoe.org/blog/history-of-tic-tac-toe)</sup> |
| 博弈论地位 | 已解游戏：双方都完美行棋时，结果总是平局<sup>[4](https://tictactoefun.com/blog/why-tic-tac-toe-is-a-draw.html)</sup> |
| 博弈树复杂度 | 判定初始局面的价值约需评估 \( 2 \times 10^{4} \) 个局面<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC6660768/)</sup> |
| 先手优势 | 在 26,776 局真实在线对局中，后手方落败占 40.5%，先手方落败占 9.9%<sup>[6](https://tictoe.org/blog/first-mover-advantage-tic-tac-toe)</sup> |

## 古代起源

井字棋已知最早的近亲是罗马游戏三石棋，名称大意为“三颗石子”。考古学家在罗马帝国各地的路面、墙壁和[斗兽场](https://www.edgepedia.org/zh/colosseum)的台阶上发现了刻着的特征性 3 × 3 棋盘，包括在庞贝（Pompeii）；士兵和孩子都玩这种游戏。<sup>[1](https://tictoe.org/blog/history-of-tic-tac-toe)</sup><sup> • </sup><sup>[7](https://www.jaqueslondon.co.uk/blogs/posts/the-history-of-noughts-and-crosses)</sup> 罗马版本与现代游戏有一处差异，对玩法影响很大：每位玩家只有三枚棋子，全部放置完毕后，必须将棋子滑到相邻的格子，而不能另放新子，目标同样是连成三子一线。<sup>[1](https://tictoe.org/blog/history-of-tic-tac-toe)</sup>

连三子游戏并非罗马独有。皮卡利亚（Picaria）是一种在十字形棋盘上进行的连三子游戏，是美国西南部普韦布洛人（Pueblo）诸族的游戏。<sup>[2](https://tictactoefree.co.uk/who-invented-tic-tac-toe/)</sup>

## 英国的圈叉棋

今天所熟知的形式——玩家在方格里写下 X 或 O 并留在那里——于 19 世纪初在英格兰定型。英国的名称直接描述了两个标记：nought（即 O，表示零的古词）和 cross（即 X）。<sup>[1](https://tictoe.org/blog/history-of-tic-tac-toe)</sup><sup> • </sup><sup>[8](https://tictactoefun.com/blog/history-of-tic-tac-toe.html)</sup>

印刷记载给出的年代因来源而略有出入。《在线词源词典》记载“noughts and crosses”见于 1852 年，“tick-tack-toe”这一形式见于 1892 年，更早的变体“tit-tat-toe”见于 1852 年，并推测这一名称可能来自铅笔在石板上的声音——学童最初就是在石板上玩这个游戏的。<sup>[3](https://www.etymonline.com/word/tick-tack-toe)</sup> 一个历史博客认为，“noughts and crosses”最早的英文印刷记载约在 1864 年，<sup>[1](https://tictoe.org/blog/history-of-tic-tac-toe)</sup> 另一种说法则将这种纸笔游戏最早的印刷描述定在 1858 年。<sup>[9](https://tictactoe.now/history)</sup> 到 19 世纪中叶，该游戏已成为一种固定的儿童消遣，在黑板和纸片上玩。<sup>[1](https://tictoe.org/blog/history-of-tic-tac-toe)</sup>

## “tic-tac-toe”这一名称

在美国，“tic-tac-toe”一词最初指的完全是另一种游戏：一种儿童技巧玩具，将铅笔掷向石板，按落点计分。19 世纪晚期的某个时候，这一名称转移到了格子游戏上，到 20 世纪初，“tic tac toe”已是美国的标准名称；转移的原因没有记载。<sup>[1](https://tictoe.org/blog/history-of-tic-tac-toe)</sup><sup> • </sup><sup>[8](https://tictactoefun.com/blog/history-of-tic-tac-toe.html)</sup> 词源学的解释则为这一名称的起源提供了相关的说明：对铅笔在石板上发出的声音的模仿。<sup>[3](https://www.etymonline.com/word/tick-tack-toe)</sup>

## 计算机史

井字棋在计算机史上所占的地位，与其简单程度并不相称。19 世纪 40 年代，英国数学家、分析机设计者[查尔斯·巴贝奇](https://www.edgepedia.org/zh/charles-babbage)（Charles Babbage）曾考虑制造一台能玩圈叉棋的装置，但他从未造出这样的机器。<sup>[9](https://tictactoe.now/history)</sup>

1952 年，剑桥计算机科学家亚历山大·S. 道格拉斯（Alexander S. Douglas）制作了一个名为 OXO 的程序，作为其关于人机交互的博士论文的一部分。OXO 让人在阴极射线管显示器上与计算机对弈圈叉棋，计算机下得很扎实。它比《乓》（Pong）早二十年，被视为有史以来最早的电子游戏之一。<sup>[1](https://tictoe.org/blog/history-of-tic-tac-toe)</sup><sup> • </sup><sup>[2](https://tictactoefree.co.uk/who-invented-tic-tac-toe/)</sup><sup> • </sup><sup>[10](https://ec.europa.eu/programmes/erasmus-plus/project-result-content/9fa79d5d-ecee-4b1b-a154-9647e7097dc9/Math-GAMES%20IO1%20EN.pdf)</sup>

## 博弈论与解法

井字棋是数学家所说的[已解游戏](https://www.edgepedia.org/zh/solved-game)：其最佳可能结果是确定已知的，只要双方都不犯错，每局都会以平局告终。<sup>[4](https://tictactoefun.com/blog/why-tic-tac-toe-is-a-draw.html)</sup> 由于井字棋规模足够小，可以穷尽分析，其博弈树复杂度——大致指计算机为判断某个起始局面的价值而必须考察的局面数量——约为 \( 2 \times 10^{4} \)。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC6660768/)</sup> 最优行棋可保证平局，但先占中心再占角并非万能的保平配方：当对手占据两个对角、而己方占据中心时，己方必须选择边格而非角格，才能避免必败。<sup>[1](https://tictoe.org/blog/history-of-tic-tac-toe)</sup>

已解的地位塑造了实际对局。由于游戏很快达到其策略上限，它在有经验的玩家之间便失去了竞争性，但通往这一上限的路径使它成为策略思维的常见入门，也成为极小化极大算法等概念的常见入门——该算法穷尽评估博弈树，是博弈人工智能中的标准第一课。<sup>[1](https://tictoe.org/blog/history-of-tic-tac-toe)</sup><sup> • </sup><sup>[11](https://github.com/flux30/tic-tac-toe)</sup> 然而，来自 26,776 局真实在线对局的数据表明，先手优势在实践中很大：后手方输掉 40.5% 的对局，而先手方为 9.9%。<sup>[6](https://tictoe.org/blog/first-mover-advantage-tic-tac-toe)</sup>

## 变体与扩展

由于标准规则下是必定的平局，许多变体改动一条规则以恢复不确定性。终极井字棋（Ultimate tic-tac-toe）将九个小棋盘嵌套成 3 × 3 的布局，每一步决定对手下一步必须在哪个棋盘落子；其策略深度足以作为强化学习研究的试验平台。<sup>[12](https://thesis.unipd.it/handle/20.500.12608/86899?mode=full)</sup> 三石棋的三子滑动规则作为“进阶”变体保留在现代实现中。<sup>[11](https://github.com/flux30/tic-tac-toe)</sup> 更大的棋盘和更高的连子目标可推广该游戏，数学家还研究过在区组设计等抽象组合结构上进行的井字棋，其胜负取决于占满一个区组中的点而非连成棋盘上的一条线。<sup>[13](https://arxiv.org/abs/2402.11118)</sup>

该游戏也仍是教育和研究中的标准工具。关于儿童推理的研究曾用井字棋追踪从掌握操作步骤到竞争性对局再到高级策略的发展进程，<sup>[14](https://www.sciencedirect.com/science/article/abs/pii/088520069090013Q)</sup> 它还被用作评估大型语言模型和棋盘游戏人工智能框架的基准中的基线游戏。<sup>[15](https://research-outcome.github.io/LLM-Game-Benchmark/)</sup><sup> • </sup><sup>[16](https://tabletopgames.ai/)</sup>

## References

1. [The History of Tic Tac Toe, TicToe.org Blog](https://tictoe.org/blog/history-of-tic-tac-toe)
2. [Who Invented Tic-Tac-Toe? History & Origins, Tic-Tac-Toe Free](https://tictactoefree.co.uk/who-invented-tic-tac-toe/)
3. [Tick-tack-toe: Etymology, Origin & Meaning, Online Etymology Dictionary](https://www.etymonline.com/word/tick-tack-toe)
4. [Why Tic-Tac-Toe Is Always a Draw: The Math of Solved Games, TicTacToeFun](https://tictactoefun.com/blog/why-tic-tac-toe-is-a-draw.html)
5. [Opinion: What does AI's success playing complex board games tell brain scientists? PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC6660768/)
6. [First Mover Advantage in Tic Tac Toe: Data From 26,776 Real Games, TicToe.org Blog](https://tictoe.org/blog/first-mover-advantage-tic-tac-toe)
7. [The History of Noughts and Crosses, Jaques of London](https://www.jaqueslondon.co.uk/blogs/posts/the-history-of-noughts-and-crosses)
8. [the 4,000-year history of tic-tac-toe — ancient egypt to today | tictactoefun](https://tictactoefun.com/blog/history-of-tic-tac-toe.html)
9. [History of Tic Tac Toe: Rome to Video Games, TicTacToe.now](https://tictactoe.now/history)
10. [Math-GAMES Compendium, Erasmus+ project](https://ec.europa.eu/programmes/erasmus-plus/project-result-content/9fa79d5d-ecee-4b1b-a154-9647e7097dc9/Math-GAMES%20IO1%20EN.pdf)
11. [Tic Tac Toe with Minimax AI variants, GitHub (flux30)](https://github.com/flux30/tic-tac-toe)
12. [When Tic-Tac-Toe Wasn't Hard Enough: Reinforcement Learning in Ultimate Tic Tac Toe, University of Padua thesis](https://thesis.unipd.it/handle/20.500.12608/86899?mode=full)
13. [Tic-Tac-Toe on Designs, arXiv:2402.11118](https://arxiv.org/abs/2402.11118)
14. [Young children's reasoning in games of nonsocial and social logic, Early Childhood Research Quarterly](https://www.sciencedirect.com/science/article/abs/pii/088520069090013Q)
15. [LLM-Game-Benchmark: Evaluating Large Language Models with Grid-Based Game Competitions](https://research-outcome.github.io/LLM-Game-Benchmark/)
16. [TAG: Tabletop Games Framework, Queen Mary University of London](https://tabletopgames.ai/)

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

Topic: 体育、游戏与休闲 › 棋牌与益智游戏 › 桌面游戏 › Traditional board, tile, and dice games › Dice games and dice culture

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/tic-tac-toe

English original: https://www.edgepedia.org/tic-tac-toe
