Game of Life, using Rust and WebAssembly
Tutorial
Built with
About
Conway's Game of Life, which consists of a Universe of infinite cells. These cells have two states: Alive & Dead. Every cell interacts with its eight neighbours, which are the cells that are horizontally, vertically, or diagonally adjacent. At each step in time, the following transitions occur:
- Any live cell with fewer than two live neighbours dies, as if by underpopulation.
- Any live cell with two or three live neighbours lives on to the next generation.
- Any live cell with more than three live neighbours dies, as if by overpopulation.
- Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
🛠️
Build with wasm-pack build
wasm-pack build
🔬
Test in Headless Browsers with wasm-pack test
wasm-pack test --headless --firefox
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.