Skip to content

An implemenatation of the classical simulation Conway's Game of Life written in Rust. Comes with a front end written in vanilla typescript.

License

Notifications You must be signed in to change notification settings

Kynson/game-of-life

Repository files navigation

Game of Life

Code style: Prettier License: MIT

An implemenatation of the classical simulation Conway's Game of Life written in Rust. Comes with a front end written in vanilla typescript.

Implementation Details

The core Rust implementation of the game uses a delta-based approach to improve rendering performance. Only changed cells' states are returned in each tick, minimizing the amount of data that needs to cross the Rust-JS boundary and eliminating the need of re-rendering the entire universe in each tick.

The front end is powered by Offscreen Canvas and Web Workers. The rendering task is offloaded from the main thread so that user interactions are not blocked during rendering.

Acknowledgement

This project is implemented by following the Rust WASM guide with some modifications. Code licensed under MIT.

About

An implemenatation of the classical simulation Conway's Game of Life written in Rust. Comes with a front end written in vanilla typescript.

Topics

Resources

License

Stars

Watchers

Forks