feat: add display function

This commit introduces a new `display` function:
- It takes an immutable reference to a grid of bool values
- It takes mutable reference to a String buffer.

it writes to the buffer, `X` or `.` depending on the grid's bool element.
This commit is contained in:
2025-05-01 09:29:47 +02:00
parent f128e3554c
commit f09f0efb7b
3 changed files with 24 additions and 4 deletions

2
Cargo.lock generated
View File

@@ -3,5 +3,5 @@
version = 4
[[package]]
name = "GameOfLife_rs"
name = "GameOfLife"
version = "0.1.0"