## Cellular Automata program on Khan Academy

For general discussion about Conway's Game of Life.

### Cellular Automata program on Khan Academy

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

A for awesome

Posts: 1650
Joined: September 13th, 2014, 5:36 pm
Location: 0x-1

### Re: Cellular Automata program on Khan Academy

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

wwei23

Posts: 867
Joined: May 22nd, 2017, 6:14 pm
Location: The (Life?) Universe