Commit Graph

8 Commits

Author SHA1 Message Date
Jon Fetter-Degges
5e3e7d60ae couple more comment changes 2022-10-11 22:18:32 -04:00
Jon Fetter-Degges
7b929ecbb1 Small fixes and use min/max 2022-10-11 22:03:57 -04:00
Jon Fetter-Degges
5214f2a681 One more implementation note 2022-10-11 21:49:40 -04:00
Jon Fetter-Degges
14e59ac5fe Improve printing, make output closer to original
Implemented Display for CellState, and tweaked outputs to match the
BASIC implementation.

Also fixed some more comments.
2022-10-11 21:37:05 -04:00
Jon Fetter-Degges
6e46aba249 README file for the Rust port 2022-10-11 21:34:40 -04:00
Jon Fetter-Degges
15724219b5 Input bounds checking, refactor and cleanup
get_pattern now checks the size of the input to prevent out of bounds
writes., and converts String to Vec<char> immediately.

Refactors: changed function names, ran rust-fmt, improved some comments
2022-10-11 20:29:40 -04:00
Jon Fetter-Degges
a068af4bc9 Do bounds update in finish_cell_transitions
Merged the functionality of update_bounds into finish_cell_transitions,
eliminating a loop.
2022-10-11 16:26:28 -04:00
Jon Fetter-Degges
0d2b7c6559 Initial commit of Life in Rust 2022-10-11 12:43:22 -04:00