freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-227-the-chase.chine...

56 lines
1.3 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: 5900f44f1000cf542c50ff61
challengeType: 5
title: 'Problem 227: The Chase'
videoUrl: ''
localeTitle: 问题227大通
---
## Description
<section id="description"> “追逐”是一个玩两个骰子和偶数玩家的游戏。 <p>球员坐在桌子旁;游戏开始于两个相对的玩家每个玩家有一个骰子。在每个回合中两个玩家都会掷骰子。如果一名球员掷出一个1他将骰子传给左边的邻居;如果他掷出一个6他就把骰子传给右边的邻居;否则,他会为下一个回合保留死亡。游戏结束时,一个玩家在滚动并通过后都有两个骰子;那个玩家失败了。 </p><p>在拥有100名玩家的游戏中游戏持续的预期轮数是多少将您的答案四舍五入到十位有效数字。 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler227()</code>应返回3780.618622。
testString: 'assert.strictEqual(euler227(), 3780.618622, "<code>euler227()</code> should return 3780.618622.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler227() {
// Good luck!
return true;
}
euler227();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>