From 6e46aba249410a1b0e88ae09406b60e5c0433dae Mon Sep 17 00:00:00 2001 From: Jon Fetter-Degges Date: Tue, 11 Oct 2022 21:34:40 -0400 Subject: [PATCH] README file for the Rust port --- 55_Life/rust/README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 55_Life/rust/README.md diff --git a/55_Life/rust/README.md b/55_Life/rust/README.md new file mode 100644 index 00000000..7bd5dd22 --- /dev/null +++ b/55_Life/rust/README.md @@ -0,0 +1,20 @@ +# Conway's Life + +Original from David Ahl's _Basic Computer Games_, downloaded from http://www.vintage-basic.net/games.html. + +Ported to Rust by Jon Fetter-Degges + +Developed and tested on Rust 1.64.0 + +## How to Run + +Install Rust using the instructions at [rust-lang.org](https://www.rust-lang.org/tools/install). + +At a command or shell prompt in the `rust` subdirectory, enter `cargo run`. + +## Differences from Original Behavior + +* The simulation stops if all cells die. +* Input of more than 66 columns is rejected. Input will automatically terminate after 20 rows. Beyond these bounds, the original +implementation would have marked the board as invalid, and beyond 68 cols/24 rows it would have had an out of bounds array access. +* The check for the string "DONE" at the end of input is case-independent.