跳到内容
onsuggest
登录
工具 en

Show HN: Run Conway's Game of Life in CSS

来源: Show HN ·

Repository: https://github.com/el-ev/wss This project is heavily inspired by Lyra Rebane's x86CSS ( https://lyra.horse/x86css/ ). So I built a WebAssembly-to-CSS transpiler and spent some time optimizing its output. This is one of the programs it produced: the program runs Conway's Game of Life, store the grid in memory, then display the grid as well as buffers in the memory visualizer. The program polls the on-screen keyboard once every few cycles when it needs input, so you may need to hold a key down for a second or more for it to register. You may notice there's still a piece of JS in the

键盘快捷键

上一条发现
←P
下一条发现
→N
喜欢
L
不适合我
X
保存
S
显示此帮助
?
关闭
Esc

快捷键在发现页面上有效。