23 lines
778 B
Markdown
23 lines
778 B
Markdown
|
|
<!-- BEGIN ARISE ------------------------------
|
||
|
|
Title:: "Conway's Kata"
|
||
|
|
|
||
|
|
Author:: "Jose Falanga"
|
||
|
|
Description:: "Kata to try different programming paradigms"
|
||
|
|
Language:: "en"
|
||
|
|
Thumbnail:: "kanagawa.jpg"
|
||
|
|
Published Date:: "2025-09-08"
|
||
|
|
Modified Date:: "2022-09-08"
|
||
|
|
|
||
|
|
content_header:: "false"
|
||
|
|
rss_hide:: "true"
|
||
|
|
---- END ARISE \\ DO NOT MODIFY THIS LINE ---->
|
||
|
|
# Conway's Kata
|
||
|
|
|
||
|
|
This is an exercise on programming paradigms, implement the rules using as many programming paradigms as you know. Personally I recommend testing OOP and ECS.
|
||
|
|
|
||
|
|
## Rules of Conway's Game of Life
|
||
|
|
|
||
|
|
- A living cell with less than two neighbors: Dies
|
||
|
|
- A living cell with two or three neighbors: Survives
|
||
|
|
- A living cell with more than three neighbors: Dies
|
||
|
|
- A dead cell with exactly three neighbors: Becomes alive
|