https://github.com/cored/game_of_life
Game of life implementation in Ruby
https://github.com/cored/game_of_life
Last synced: about 1 month ago
JSON representation
Game of life implementation in Ruby
- Host: GitHub
- URL: https://github.com/cored/game_of_life
- Owner: cored
- License: mit
- Created: 2022-06-27T22:59:11.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-27T23:06:53.000Z (about 4 years ago)
- Last Synced: 2025-11-06T10:03:03.613Z (9 months ago)
- Language: Ruby
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Summary
Basic implementation of an engine to support *Conway's Game Of Life*.
The engine implements the core domain while following a discovery approach to testing.
### Domain
#### Use Cases
- `GameOfLife` - handles simulation
- `GameOfLife::Worlds::Replace` - handle world replacement for a new population
- `GameOfLife::Worlds::Cells::Replace` - replace a specific cell in the grid, calculating its neighbors.
#### Values
- `Worlds::World` - represents the world
- `Worlds::Cells::Cell` - represents the state of a point in the world
- `Worlds::Location` - coordinate in which a `Cell` exist.
- `Worlds::Population` - the combination between a `Location` and a `Cell.`
- `Worlds::Cells::Neighbor` - the representation of neighbors in every direction.
### Development
#### Run specs
`$ rspec `