2020-04-30 08:59:47 +02:00
|
|
|
## Game of Life
|
2020-04-29 08:25:42 +02:00
|
|
|
|
2020-04-30 08:59:47 +02:00
|
|
|
An interactive version of the Game of Life, invented by John Conway, implemented
|
|
|
|
|
on top of a `Canvas` widget and other controls.
|
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-04-30 08:59:47 +02:00
|
|
|
<a href="https://gfycat.com/regalspiritedjaguarundi">
|
|
|
|
|
<img src="https://thumbs.gfycat.com/RegalSpiritedJaguarundi-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
|