Skip to content
/ life Public
forked from copy/life

The definite Conway's Game of Life implementation in your browser. Features an infinite field & Hashlife

License

Notifications You must be signed in to change notification settings

martyvona/life

 
 

Repository files navigation

Fork of in-browser pure Javascript Conway's game of life by Fabian Hemmer, with modifications to support running the digital clock by dim to actually tell time.

https://martyvona.github.io/life/min/index.html?pattern=digitalclock&step=64&steps_per_sec=3&reset_after_step=259200&goto_step=200+3*pm_now_sec&run=1&fps=6&noui=1

Omit the "noui=1" option to show the UI if you want to play with it, e.g. change the speed, load other patterns, etc.

To reset the clock to the current local time simply reload the page.

Modifications

  • add auto_start=1 URL parameter
  • add steps_per_sec=STEPS to sync the step speed to wall clock time
  • add goto_step=OFFSET+STEPS*MULT to fast-forward a specfic number of steps before running
    • OFFSET+ is optional; if present, OFFSET is an integer (positive or negative) number of steps
    • STEPS is required; a non-negative number of steps
    • *MULT is optional; if present it can be either *now_sec, which will be replaced with the number of seconds sicne the most recent midnight (12:00 AM) in local wall-clock time at page load, or *pm_now_sec, which will be replaced with the number of seconds since the most recent noon (12:00 PM)
  • add reset_after_step=STEPS to auto rewind to the initial state (after the goto_step fast forward, if any) after a given number of steps
  • add digital clock pattern
  • bugfix noui option
  • restore generation number on rewind

About

The definite Conway's Game of Life implementation in your browser. Features an infinite field & Hashlife

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 65.7%
  • HTML 31.7%
  • CSS 2.3%
  • Shell 0.3%