Implementation of Conway's Game of Life in an infinite space in TypeScript in Deno. Alive cells are stored in a set. To calculate the next iteration, we compute the number of neighbors for each cell that has neighbors.
I am implementing the Game of Life in different programming languages to learn about them. You can find all of my implementations on GitHub.
deno run main.ts
deno run --watch --unstable main.ts
deno test
deno fmt && deno lint --unstable