---
id: bd7154d8c242eddfaeb5bd13
title: Build the Game of Life
isRequired: false
challengeType: 3
videoUrl: ''
localeTitle: 打造生命游戏
---

## Description
<section id="description"> <strong>目标：</strong>构建一个功能类似于此的<a href="https://codepen.io" target="_blank">CodePen.io</a>应用程序： <a href="https://codepen.io/freeCodeCamp/full/BpwMZv/" target="_blank">https</a> <strong>：</strong> <a href="https://codepen.io" target="_blank">//codepen.io/freeCodeCamp/full/BpwMZv/</a> 。完成以下<a href="https://en.wikipedia.org/wiki/User_story" target="_blank">用户故事</a> 。使用您需要的任何库或API。给它你自己的个人风格。 <strong>用户故事：</strong>当我第一次到达游戏时，它将随机生成一个棋盘并开始播放。 <strong>用户故事：</strong>我可以开始和停止董事会。 <strong>用户故事：</strong>我可以设置电路板。 <strong>用户故事：</strong>我可以清除董事会。 <strong>用户故事：</strong>当我按下开始时，游戏将播出。 <strong>用户故事：</strong>每次董事会改变，我都能看到已经过了多少代。 <strong>提示：</strong>以下是对Conway的生命游戏的解释，来自John Conway本人： <a href="https://www.youtube.com/watch?v=E8kUJL04ELA" target="_blank">https</a> ： <a href="https://www.youtube.com/watch?v=E8kUJL04ELA" target="_blank">//www.youtube.com/watch？v =</a> <strong>E8kUJL04ELA提示：</strong>这里是Conway生命游戏的概述，规则供您参考： <a href="https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life" target="_blank">https：// en.wikipedia.org/wiki/Conway%27s_Game_of_Life</a>如果卡住，请记得使用<a href="//github.com/FreeCodeCamp/freecodecamp/wiki/FreeCodeCamp-Get-Help" target="_blank">Read-Search-Ask</a> 。完成后，单击“我已完成此挑战”按钮并包含指向CodePen的链接。您可以通过Facebook上的朋友分享您的项目反馈。 </section>

## Instructions
<section id="instructions">
</section>

## Tests
<section id='tests'>

```yml
tests: []

```

</section>

## Challenge Seed
<section id='challengeSeed'>

</section>

## Solution
<section id='solution'>

```js
// solution required
```
</section>
