<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><title>MagicLen</title><link>https://magiclen.org/cn/tag/conway-game-of-life/</link><description>多元化原创文章，内容包罗万象，有编程语言、网站应用、软件介绍、硬件介绍、操作系统、旅行游记、专题采访、益智问题、文学创作，以及作者们的知识分享和作品分享。</description><language>zh-CN</language><lastBuildDate>Sun, 22 Nov 2026 17:56:27 +0800</lastBuildDate><atom:link href="https://magiclen.org/cn/tag/conway-game-of-life/feed/" rel="self" type="application/rss+xml"/><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>用 Rust 开发 WebAssembly─第六章：康威生命游戏的性能</title><link>https://magiclen.org/cn/rust-webassembly-conways-game-of-life-performance/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-220x162.png 1x, https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-440x324.png 2x, https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-660x486.png 3x" alt>
前面花了几个章节制作的康威生命游戏，功能已经大致上完成了，不过我们还无法确定其性能是否还有可以优化的空间，必须要用一些方式来侦测才行。]]></description><category>研究分享</category><category>Rust</category><category>WebAssembly</category><category>JavaScript</category><category>HTML</category><category>JavaScript</category><category>node.js</category><category>Rust</category><category>Wasm</category><category>Webpack</category><category>用 Rust 开发 WebAssembly</category><category>康威生命游戏</category><category>TypeScript</category><guid>https://magiclen.org/cn/rust-webassembly-conways-game-of-life-performance</guid><pubDate>Thu, 19 Sep 2019 12:00:18 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>用 Rust 开发 WebAssembly─第五章：让康威生命游戏能与玩家交互</title><link>https://magiclen.org/cn/rust-webassembly-conways-game-of-life-interact/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-220x162.png 1x, https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-440x324.png 2x, https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-660x486.png 3x" alt>
在这个章节中，我们要替康威生命游戏加入播放、暂停和逐格播放这几个时间控制的功能，并且让培养皿中的格子会因玩家鼠标光标的点击事件而改变状态。]]></description><category>研究分享</category><category>Rust</category><category>WebAssembly</category><category>JavaScript</category><category>HTML</category><category>JavaScript</category><category>node.js</category><category>Rust</category><category>Wasm</category><category>Webpack</category><category>用 Rust 开发 WebAssembly</category><category>康威生命游戏</category><category>TypeScript</category><guid>https://magiclen.org/cn/rust-webassembly-conways-game-of-life-interact</guid><pubDate>Tue, 17 Sep 2019 12:00:01 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>用 Rust 开发 WebAssembly─第四章：测试(Testing)与调试(Debugging)</title><link>https://magiclen.org/cn/rust-webassembly-testing-debugging/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-220x162.png 1x, https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-440x324.png 2x, https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-660x486.png 3x" alt>
在开始替我们的康威生命游戏实作更多功能之前，要先将目前的 Rust 程序加入测试(Testing)，除了可以用来验证目前的程序正确性之外，还可以避免日后因修改程序而把原本可以正常工作的程序弄出问题了。另外，有些程序问题发生的原因很难确认，我们也需要在 Rust 程序中输出 Log 到网页浏览器的主控台(console)中，才能调试(Debugging)。]]></description><category>研究分享</category><category>Rust</category><category>WebAssembly</category><category>JavaScript</category><category>JavaScript</category><category>node.js</category><category>Rust</category><category>Wasm</category><category>Webpack</category><category>用 Rust 开发 WebAssembly</category><category>康威生命游戏</category><category>TypeScript</category><guid>https://magiclen.org/cn/rust-webassembly-testing-debugging</guid><pubDate>Sun, 15 Sep 2019 12:00:53 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>用 Rust 开发 WebAssembly─第三章：实作康威生命游戏</title><link>https://magiclen.org/cn/rust-webassembly-conways-game-of-life/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-220x162.png 1x, https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-440x324.png 2x, https://magiclen.org/wp-content/uploads/2019/06/wasm-ferris-660x486.png 3x" alt>
康威生命游戏（Conway&#39;s Game of Life，又称康威生命棋）是一个模拟生物细胞存活、繁殖与灭亡的游戏。虽然这个称为「游戏」，但它其实不怎么好玩，它是透过电脑来模拟出一个培养皿空间，这个培养皿中在一开始会被放置一些虚拟细胞，而这些细胞会遵循一些「游戏规则」来决定其在下一个阶段是持续生存、还是要繁殖、抑或是毁灭。借由图像化这个培养皿，我们可以从中观察到一些有趣(?)的图像。]]></description><category>研究分享</category><category>Rust</category><category>WebAssembly</category><category>JavaScript</category><category>HTML</category><category>JavaScript</category><category>node.js</category><category>Rust</category><category>Wasm</category><category>Webpack</category><category>用 Rust 开发 WebAssembly</category><category>康威生命游戏</category><category>TypeScript</category><guid>https://magiclen.org/cn/rust-webassembly-conways-game-of-life</guid><pubDate>Fri, 13 Sep 2019 12:00:43 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>