From 8384b3c6904ed9a5312b5d36d8c32b7640288737 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Wed, 1 Jun 2022 16:16:20 +0200 Subject: [PATCH] fix(curriculum): external Life link in CIP (#46262) --- .../build-the-game-of-life.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/curriculum/challenges/english/10-coding-interview-prep/take-home-projects/build-the-game-of-life.md b/curriculum/challenges/english/10-coding-interview-prep/take-home-projects/build-the-game-of-life.md index a5de989e753..315d41e4a05 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/take-home-projects/build-the-game-of-life.md +++ b/curriculum/challenges/english/10-coding-interview-prep/take-home-projects/build-the-game-of-life.md @@ -10,6 +10,17 @@ dashedName: build-the-game-of-life **Objective:** Build an app that is functionally similar to this: . +The Game of Life is a cellular automaton devised by the British mathematician John Horton Conway. It is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves. + +The universe of the Game of Life is an infinite, two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, populated and unpopulated. Every cell interacts with its eight neighbours, which are the cells that are horizontally, vertically, or diagonally adjacent. + +At each step in time, the following transitions occur: + +- Any live cell with fewer than two live neighbours dies, as if by underpopulation. +- Any live cell with two or three live neighbours lives on to the next generation. +- Any live cell with more than three live neighbours dies, as if by overpopulation. +- Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction. + Fulfill the below user stories and get all of the tests to pass. Use whichever libraries or APIs you need. Give it your own personal style. **User Story:** When I first arrive at the game, it will randomly generate a board and start playing. @@ -24,11 +35,7 @@ Fulfill the below user stories and get all of the tests to pass. Use whichever l **User Story:** Each time the board changes, I can see how many generations have gone by. -**Hint:** Here's an explanation of Conway's Game of Life from John Conway himself: - -**Hint:** Here's an overview of Conway's Game of Life with rules for your reference: - -When you are finished, include a link to your project on CodePen and click the "I've completed this challenge" button. +When you are finished, include a link to your project and click the "I've completed this challenge" button. You can get feedback on your project by sharing it on the [freeCodeCamp forum](https://forum.freecodecamp.org/c/project-feedback/409).