freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/take-home-projects/build-a-simon-game.chinese.md

39 lines
2.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: bd7158d8c442eddfaeb5bd1c
title: Build a Simon Game
challengeType: 3
isRequired: false
videoUrl: ''
localeTitle: 建立一个西蒙游戏
---
## Description
<section id="description"> <strong>目标:</strong>构建一个功能类似于此的<a href="https://codepen.io" target="_blank">CodePen.io</a>应用程序: <a href="https://codepen.io/Em-Ant/full/QbRyqq/" target="_blank">https</a> <strong></strong> <a href="https://codepen.io" target="_blank">//codepen.io/freeCodeCamp/full/obYBjE</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>我可以在严格的模式下玩,如果我按下按钮错误,它会通知我我已经这样做了,并且游戏重新开始按下一系列按钮。 <strong>用户故事:</strong>我可以通过一系列正确的20个步骤来赢得游戏。我被告知我的胜利然后比赛重新开始。 <strong>提示:</strong>在这里<strong></strong>您可以使用每个按钮的MP3 <code>https://s3.amazonaws.com/freecodecamp/simonSound1.mp3</code> <code>https://s3.amazonaws.com/freecodecamp/simonSound2.mp3</code> <code>https://s3.amazonaws.com/freecodecamp/simonSound3.mp3</code> <code>https://s3.amazonaws.com/freecodecamp/simonSound4.mp3</code> 。如果卡住,请记得使用<a href="http://forum.freecodecamp.org/t/how-to-get-help-when-you-are-stuck/19514" 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>