Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-227-the-chase.md

43 lines
1008 B
Markdown
Raw Normal View History

---
id: 5900f44f1000cf542c50ff61
title: 问题227大通
challengeType: 5
videoUrl: ''
dashedName: problem-227-the-chase
---
# --description--
“追逐”是一个玩两个骰子和偶数玩家的游戏。
球员坐在桌子旁;游戏开始于两个相对的玩家每个玩家有一个骰子。在每个回合中两个玩家都会掷骰子。如果一名球员掷出一个1他将骰子传给左边的邻居;如果他掷出一个6他就把骰子传给右边的邻居;否则,他会为下一个回合保留死亡。游戏结束时,一个玩家在滚动并通过后都有两个骰子;那个玩家失败了。
在拥有100名玩家的游戏中游戏持续的预期轮数是多少将您的答案四舍五入到十位有效数字。
# --hints--
`euler227()`应返回3780.618622。
```js
assert.strictEqual(euler227(), 3780.618622);
```
# --seed--
## --seed-contents--
```js
function euler227() {
return true;
}
euler227();
```
# --solutions--
```js
// solution required
```