关于本站
About This Site
EventHorizon.life 是一个基于康威生命游戏的实时多人无限宇宙沙盒。你与全球任意玩家共享同一张 10048×10048 的环形网格,在这里放置细胞、观察涌现,无需注册,即开即玩。
EventHorizon.life is a real-time multiplayer infinite-universe sandbox built on Conway's Game of Life. You share a single 10048×10048 toroidal grid with anyone in the world — place cells, watch emergence unfold. No sign-up required.
这里没有胜负,没有目标,只有规则极简却可能性无穷的元胞世界。每一个进入"事件视界"的玩家,都在参与一场跨越时空的集体创作。
There is no winning, no objective — only a world of minimal rules and infinite possibility. Every player who crosses the "event horizon" becomes part of an ongoing collective creation that spans time and space.
🔬 康威生命游戏:科学背景
🔬 Conway's Game of Life: Scientific Background
1970 年,英国数学家约翰·霍顿·康威(John Horton Conway)在与普林斯顿的学生研究约翰·冯·诺依曼的"自我复制机"理论时,提出了一个极度精简却出人意料强大的模型——生命游戏。同年 10 月,数学科普作家马丁·加德纳在《科学美国人》专栏介绍了这一游戏,随即引发全球数学与计算机社区的热潮。
In 1970, British mathematician John Horton Conway devised an elegantly minimal yet unexpectedly powerful model while exploring John von Neumann's self-replicating machine theory with Princeton students — the Game of Life. That October, science writer Martin Gardner introduced it in his Scientific American column, sparking a worldwide wave of fascination across mathematics and computing communities.
生命游戏是一种细胞自动机(Cellular Automaton):在离散的二维网格上,每个格子在每一"代"同步按四条规则更新状态。整个系统没有中央控制,局部的简单交互催生了宏观的复杂行为——这正是涌现(Emergence)的教科书级示范。
The Game of Life is a cellular automaton: on a discrete 2-D grid, every cell updates simultaneously each "generation" according to four rules. There is no central controller — local, simple interactions give rise to macroscopic complexity. This is the textbook definition of emergence.
最令计算机科学家震惊的是:1982 年,研究者发现生命游戏中可以构造出图灵完备的计算机——逻辑门、内存、计数器,乃至可以运行生命游戏本身(meta-life)。这意味着,仅凭四条规则,这个"游戏"的计算能力与任何数字计算机等价。
Most astonishingly for computer scientists: by 1982, researchers had shown that the Game of Life supports Turing-complete computation — logic gates, memory, counters, and even a Life simulator running inside Life (meta-life). Four rules are sufficient to match the computational power of any digital computer.
🌌 涌现:简单规则,无限复杂
🌌 Emergence: Simple Rules, Infinite Complexity
生命游戏深刻影响了复杂系统科学、人工生命(Artificial Life)、自组织理论和进化计算等领域。它用最少的假设展示了一个惊人的原理:宏观的秩序与智能,并不需要自上而下的设计,只需底层规则与足够的迭代。
The Game of Life has profoundly influenced complex systems science, artificial life, self-organization theory, and evolutionary computation. It illustrates a striking principle with minimal assumptions: macro-level order and intelligence require no top-down design — only local rules and sufficient iteration.
生命游戏中已发现的结构类型涵盖:
Discovered pattern classes include:
方块、蜂巢、面包……永远不变,维持平衡。 🧱 Still Lifes
Block, beehive, loaf… permanently stable configurations.
闪光灯、蟾蜍……在有限周期内循环变化。 🔄 Oscillators
Blinker, toad… cycle through states with a fixed period.
在网格上移动的振荡结构,如经典五格滑翔机。 🚀 Spaceships
Oscillating structures that translate across the grid — the iconic 5-cell glider.
从极小初始状态演化很长时间才稳定,如 R-五格体(1103 代)。 💥 Methuselahs
Tiny seeds that evolve for a long time before stabilizing — the R-pentomino lasts 1103 generations.
无限持续发射滑翔机,可用于构造逻辑门。 🌱 Guns
Emit a continuous stream of gliders — the building blocks of logic gates in Life computers.
可在生命游戏中模拟任意计算,实现完全可编程的计算机。 ♾️ Turing Machines
Arbitrary computation can be simulated inside Life — a fully programmable computer in four rules.
康威本人曾以"宇宙法则也许同样简单"来描述这一游戏的哲学意义。当你在 EventHorizon.life 的无限画布上放置几个细胞,你所触发的,是与宇宙深层结构同构的逻辑之美。
Conway himself described the game's philosophical implication as: "Perhaps the laws of the universe are equally simple." When you place a few cells on EventHorizon.life's infinite canvas, you trigger a beauty of logic that is isomorphic to the deep structure of the universe.
⚙️ 硬核技术堆栈
⚙️ Hardcore Tech Stack
EventHorizon.life 从底层到前端,每一层都选择了最适合其职责的技术,不引入不必要的复杂度。
Every layer of EventHorizon.life uses the right tool for the job — no unnecessary complexity, no framework overhead where none is needed.
| 🦀 Rust 后端 | 🦀 Rust Backend | 核心演化引擎与 WebSocket 服务器均用 Rust 实现。零 GC 暂停、内存安全、极致吞吐——保障毫秒级每代计算与多客户端并发广播。 | Core evolution engine and WebSocket server written in Rust. Zero GC pauses, memory safety, maximum throughput — millisecond-per-generation computation with concurrent multi-client broadcast. |
| 🌐 WebSocket 实时同步 | 🌐 WebSocket Real-time Sync | 服务端通过二进制 WebSocket 帧广播差量更新,最小化带宽占用。客户端采用乐观预测策略:输入立即本地渲染,再与服务端权威状态协调,兼顾响应性与一致性。 | Server broadcasts delta updates via binary WebSocket frames to minimize bandwidth. Client uses optimistic prediction: input renders instantly on your screen, then reconciles against server-authoritative state — responsive feel with strong consistency. |
| 📐 Vanilla TypeScript | 📐 Vanilla TypeScript | 前端零框架依赖,Vite 构建。无虚拟 DOM、无 hydration 开销——直接操作 Canvas 2D API,保证最低延迟的渲染流水线。 | Zero frontend framework — Vite build, Vanilla TypeScript. No virtual DOM, no hydration overhead. Direct Canvas 2D API manipulation for the lowest-latency render pipeline possible. |
| 🎨 Canvas 2D 渲染 | 🎨 Canvas 2D Rendering | 每帧只绘制视口内可见细胞,支持 0.3×–5.0× 无级缩放,以光标/双指中心为锚点。小地图独立渲染线程,全局细胞分布实时可见。 | Only visible cells within the viewport are drawn each frame. Smooth 0.3×–5.0× zoom anchored at cursor/pinch center. Minimap renders the global cell distribution in real time. |
| 🔢 环形拓扑 (Torus) | 🔢 Toroidal Topology | 世界坐标以 10048×10048 取模,完美环绕——无边界判断分支,邻居计算统一,结构可跨"边界"与自身交互。 | World coordinates wrap modulo 10048×10048 — no boundary branch logic, uniform neighbor computation, structures can interact with themselves across the wrap. |
| 🔊 Web Audio API 声音引擎 | 🔊 Web Audio API Sound Engine | 每个细胞映射到 20Hz–20kHz 频谱中的固定频段,大量细胞叠加收敛为粉红噪声/红噪声。音符激活在 400ms 窗口内随机散布,避免瞬时削波。 | Each cell maps to a fixed band in the 20 Hz–20 kHz spectrum; dense cell populations converge into pink or red noise. Note onsets staggered over a 400 ms window to prevent transient clipping. |
| 🐳 Docker + Nginx | 🐳 Docker + Nginx | Docker Compose 编排两个服务(Rust 后端 + Nginx 客户端容器)。双层 Nginx:容器内静态文件服务 + 宿主机 HTTPS 反代,TLS 终止于宿主层。 | Docker Compose orchestrates two services (Rust backend + Nginx client container). Dual-layer Nginx: in-container static serving + host-level HTTPS reverse proxy, TLS terminated at the host. |
| 🤖 无 AI / 无第三方框架 | 🤖 No AI / No 3rd-Party Frameworks | 演化逻辑 100% 确定性,不依赖任何 ML 模型或外部游戏引擎。代码原创,UI 无组件库——所有交互行为手写实现。 | Evolution logic is 100% deterministic — no ML models, no external game engine. Original codebase, UI built without component libraries — every interaction behavior hand-written. |
📡 联系 & 相关链接
📡 Contact & Links
📖 使用说明 📖 User Guide 🎮 单机版 🎮 Solo Mode Privacy Policy
Email:yujiarun [at] zohomail.com
Email:yujiarun [at] zohomail.com