Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

41 lines
980 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4ca1000cf542c50ffdc
title: 问题349兰顿的蚂蚁
challengeType: 5
videoUrl: ''
dashedName: problem-349-langtons-ant
---
# --description--
蚂蚁在规则的方格网格上移动,方格网格为黑色或白色。蚂蚁总是朝向一个主要方向(左,右,上或下),并根据以下规则从正方形移动到相邻正方形: - 如果它在黑色方块上它将方形的颜色翻转为白色逆时针旋转90度向前移动一个方格。 - 如果它在白色方块上它将方块的颜色翻转为黑色顺时针旋转90度并向前移动一个方格。
从一个完全是白色的网格开始在蚂蚁1018次移动后有多少个方块是黑色的
# --hints--
`euler349()`应该返回115384615384614940。
```js
assert.strictEqual(euler349(), 115384615384614940);
```
# --seed--
## --seed-contents--
```js
function euler349() {
return true;
}
euler349();
```
# --solutions--
```js
// solution required
```