2020-04-30 08:59:47 +02:00
## Game of Life
2020-04-29 08:25:42 +02:00
2020-05-04 23:54:28 +02:00
An interactive version of the [Game of Life], invented by [John Horton Conway].
It runs a simulation in a background thread while allowing interaction with a `Canvas` that displays an infinite grid with zooming, panning, and drawing support.
2020-04-29 08:25:42 +02:00
2020-04-30 08:59:47 +02:00
The __ [`main` ]__ file contains the relevant code of the example.
2020-04-29 08:25:42 +02:00
< div align = "center" >
2020-11-26 16:36:56 +01:00
< a href = "https://gfycat.com/WhichPaltryChick" >
< img src = "https://thumbs.gfycat.com/WhichPaltryChick-size_restricted.gif" >
2020-04-29 08:25:42 +02:00
< / a >
< / div >
You can run it with `cargo run` :
```
2020-04-30 08:59:47 +02:00
cargo run --package game_of_life
2020-04-29 08:25:42 +02:00
```
[`main` ]: src/main.rs
2020-05-04 23:54:28 +02:00
[Game of Life]: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
[John Horton Conway]: https://en.wikipedia.org/wiki/John_Horton_Conway