A simple infection simulation.
  • Rust 98.2%
  • HTML 1.8%
Find a file
2026-06-12 07:58:35 +02:00
.cargo add grid module with random cell seeding and wasm rand setup 2026-06-01 21:00:28 +02:00
base remove neighbors function 2026-06-12 07:32:10 +02:00
res add readme 2026-06-11 08:37:12 +02:00
tui add a statusline with healthy count and hotkey help 2026-06-12 07:58:35 +02:00
web create setup for html and tui frontend in the same project 2026-06-10 14:39:53 +02:00
.gitignore create setup for html and tui frontend in the same project 2026-06-10 14:39:53 +02:00
Cargo.toml create setup for html and tui frontend in the same project 2026-06-10 14:39:53 +02:00
LICENSE add license 2026-06-11 08:37:46 +02:00
README.md update readme 2026-06-11 08:39:46 +02:00

Zombie (an infection simulation)

Description

A simple simulation of health cells getting infected by infected cells. Infected cells check for horizontal and vertical neighbors and infect them. This project provides a web version and a tui version for the simulation.

How to run

TUI version

cargo run -p tui

web version

Change into web directory and run:

trunk serve

Inside a browser visit http://localhost:8080/.

TODO

  • web version: Infects the first cell at the start. Make it so the user starts the simulation by infecting the first cell.
  • web and tui version: Add some more information to the screen, like healthy cell count, key hints, etc.

Resources