We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb4d1a commit ee321bdCopy full SHA for ee321bd
README.md
@@ -350,6 +350,10 @@ fn main() {
350
}
351
```
352
353
+## Tools
354
+
355
+- [Rust playground](https://play.rust-lang.org/)
356
357
## Resources
358
359
- [Actix api framework](https://actix.rs)
game-of-life/src/game/god.rs
@@ -40,15 +40,5 @@ mod tests {
40
41
42
pub fn is_alive(alive: bool, neighbours: i32) -> bool {
43
- if alive {
44
- if neighbours == 2 || neighbours == 3 {
45
- return true;
46
- }
47
- return false;
48
- } else {
49
- if neighbours == 3 {
50
51
52
53
+ return alive && neighbours == 2 || neighbours == 3
54
0 commit comments