Commit Graph

4 Commits

Author SHA1 Message Date
2176502bd7 feat: add count function
It introduces a new `count` function that take:
- the grid arena
- X and Y as `isize`

It counts how many nearby cells are alive at a specified position and returns the total.
2025-05-01 21:48:08 +02:00
f09f0efb7b 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.
2025-05-01 09:29:47 +02:00
f128e3554c chore: cargo init task 2025-04-29 22:40:38 +02:00
Loïc GUEZO
3067b52d20 Initial commit 2025-04-29 22:35:29 +02:00