TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Conway's Game of Life in HTML 5

50 pointsby rmsalmost 15 years ago

10 comments

greendestinyalmost 15 years ago
Html5, pfft :) Many years ago I wrote a version of the Game of Life where the html to display a step of the game was both html and c code that could be compiled and run - the output being the duel html/c code for the next iteration. It involved the horrendous of abuse of what netscape (this was 1996 or so) would accept as html, and lots of #defines for the c code. This was for the international obfuscated c code competition - I thought it was pretty badass, but it didn't win. When I dug up the code many years later, I don't think I could ever really get another browser to accept the "html" so maybe it was a better idea than implementation.
评论 #1496838 未加载
andreyfalmost 15 years ago
Here's something I've been meaning to ask someone: are there patterns that can "survive" in some degree of random static in a GoL board? As in, are there spaceships which can fly through other patterns on the board (either leaving behind other patterns, or acting as an "eraser")? Note that they don't necessarily have to "survive" in emptiness.
评论 #1497287 未加载
评论 #1497475 未加载
bootloadalmost 15 years ago
<p><pre><code> "Bill Gosper discovered the first glider gun (and, so far, the smallest one found) in 1970, earning $50 from Conway. The discovery of the glider gun eventually led to the proof that Conway's Game of Life could function as a Turing machine." </code></pre> fascinated by this quote ~ <a href="https://secure.wikimedia.org/wikipedia/en/wiki/Gun_%28cellular_automaton%29" rel="nofollow">https://secure.wikimedia.org/wikipedia/en/wiki/Gun_%28cellul...</a>
tlrobinsonalmost 15 years ago
Does this even use any HTML5 features, or did it just need a buzzword?
评论 #1497219 未加载
aralibalmost 15 years ago
<p><pre><code> {"width": 52, "cells": "AAAAABgAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAAACIAAAEEAAAEEAAAAgAAACIAAABwAAAAgAAAAAAAAAAAAAHAAAAHAAAAIgAAAAAAAAYwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}</code></pre>
zacclarkalmost 15 years ago
Somehow, even after programming my own version of the game of life, I can still sit there watching it evolve. It never ceases to amaze me how such a set of simple rules can cause such interesting behavior.
mcgyveralmost 15 years ago
Is there a stash of interesting imports available anywhere?
评论 #1497062 未加载
评论 #1496598 未加载
评论 #1496596 未加载
dchsalmost 15 years ago
Who clicked expecting something to do with Ron Conway?
评论 #1497020 未加载
ThomPetealmost 15 years ago
Doesn't work on the iPad.
评论 #1496486 未加载
评论 #1496451 未加载
lionheartedalmost 15 years ago
Wow. It's so beautiful.