yew/examples/game_of_life
2025-03-03 04:53:22 +09:00
..
2020-09-22 00:17:48 +02:00
2025-02-21 18:18:57 +09:00
2025-02-21 18:18:57 +09:00
2022-04-11 17:02:59 +05:00
2025-03-03 04:53:22 +09:00
2020-09-22 00:17:48 +02:00
2025-03-02 23:56:22 +09:00

Game of Life Example

Demo

This example boasts a complete implementation of Conway's Game of Life. You can manually toggle cells by clicking on them or create a random layout by pressing the "Random" button.

Running

This example is quite resource intensive; it's recommended that you only use it with the --release flag:

RUSTFLAGS='--cfg getrandom_backend="wasm_js"' trunk serve --release

Concepts

  • Uses gloo_timer to automatically step the simulation.
  • Logs to the console using the weblog crate.

Running

Run this application with the trunk development server:

RUSTFLAGS='--cfg getrandom_backend="wasm_js"' trunk serve --open