ConwayLife.com - A community for Conway's Game of Life and related cellular automata
Home  •  LifeWiki  •  Forums  •  Download Golly

Cellular Automata program on Khan Academy

For general discussion about Conway's Game of Life.

Cellular Automata program on Khan Academy

Postby A for awesome » April 7th, 2015, 8:35 pm

I have made a cellular automaton program on Khan Academy. It uses JavaScript, and can run all life-like cellular automata, as well as all non-generations members of MCell's Weighted Life family (but you have to change the code to get the weighted rules). Here is the URL: https://www.khanacademy.org/computer-programming/cellular-automata/6326644667187200
x₁=ηx
V ⃰_η=c²√(Λη)
K=(Λu²)/2
Pₐ=1−1/(∫^∞_t₀(p(t)ˡ⁽ᵗ⁾)dt)

$$x_1=\eta x$$
$$V^*_\eta=c^2\sqrt{\Lambda\eta}$$
$$K=\frac{\Lambda u^2}2$$
$$P_a=1-\frac1{\int^\infty_{t_0}p(t)^{l(t)}dt}$$

http://conwaylife.com/wiki/A_for_all

Aidan F. Pierce
User avatar
A for awesome
 
Posts: 1439
Joined: September 13th, 2014, 5:36 pm
Location: 0x-1

Re: Cellular Automata program on Khan Academy

Postby wwei23 » July 13th, 2017, 2:50 pm

I use vectors. That way, the pattern can grow unbounded and any neighborhood can be specified, but the code has to be changed to specify a rule (especially non-totalistic(especially non-isotropic)), and the time needed is approximately proportional to the cube of the population. Despite this, it seems to be the first one of its kind:
https://www.khanacademy.org/computer-programming/game-of-life-in-infinite-grid/5515821780369408
Replicator!
x = 3, y = 3, rule = B3/S234y
2bo$3o$bo!
User avatar
wwei23
 
Posts: 642
Joined: May 22nd, 2017, 6:14 pm
Location: The (Life?) Universe


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 6 guests