DSH Plugins
返回列表
🖥️

dsh-life-game

客户端 更新于 2026.09.16

在终端中运行以下命令:

dsh plugin install Helly0000/dsh-life-game

将以下提示词粘贴到 DeepSeek Harness 对话框中:

在 DeepSeek Harness 中执行 dsh plugin install Helly0000/dsh-life-game(源码地址:https://github.com/Helly0000/dsh-life-game),完成后重启 dsh 一次即可生效。

插件介绍

Between typing a commit message and answering a chat ping, you might catch yourself thinking about a glider gliding across a grid. dsh-life-game drops Conway's Game of Life straight into DeepSeek Harness: a sidebar row as the entry point, a centre-column board that auto-fits its pane, and an optional floating window so you can watch generations tick while the conversation continues. It is a pure client-side canvas renderer driven by the Cordis timer service — no network calls, no filesystem, no host service required.

The core loop is draw, place, watch. Drag to paint live cells, right-click or Alt-drag to erase, and reach for the built-in pattern library — glider, LWSS, Gosper glider gun, R-pentomino, Acorn, Pulsar, Diehard — with a translucent preview under the cursor before you commit. Four rule sets are available (B3/S23, B36/S23, B3678/S34678, B2/S), the topology toggles between torus and dead edge, and speed ranges from single-step to 120 generations per second. Board size and cell pixel size are two independent knobs, so you can zoom the view on a fixed grid or change how many cells fit while in Fit mode. Live readouts track generation, population, peak, density, and a population sparkline, with newborn cells flashing briefly.

The UI follows the host locale between zh and en in real time, and every preference — board preset, zoom, speed, rule, edge mode, float position, running state — persists in localStorage under a dedicated key, so the next session opens exactly where you left off. It suits developers who want a cell-automaton toy inside their terminal workflow without leaving the window, presenters who need a quick visual demo mid-talk, and anyone who enjoys sitting back and watching a random soup slowly grow structure.

使用场景

  • 在终端工作流中随手观察细胞自动机多代演化
  • 快速放置滑翔机、Gosper 机枪等经典图案并观察碰撞
  • 用随机汤观察结构涌现并追踪种群火花线

适合人员

  • 想在终端里玩生命游戏的开发者
  • 需要快速视觉小演示的演讲者
  • 喜欢观察元胞自动机演化的极客