1
0
mirror of https://github.com/apachecn/eloquent-js-3e-zh.git synced 2025-05-23 20:02:20 +00:00
This commit is contained in:
wizardforcel 2018-05-05 21:27:47 +08:00
parent fd87cc06d3
commit c50e1b000b
3 changed files with 12 additions and 2 deletions

14
7.md
View File

@ -1,10 +1,20 @@
# 七、项目:机器人
> 原文:[Project: A Robot](http://eloquentjavascript.net/07_robot.html)
>
> 译者:[飞龙](https://github.com/wizardforcel)
>
> 协议:[CC BY-NC-SA 4.0](http://creativecommons.org/licenses/by-nc-sa/4.0/)
>
> 自豪地采用[谷歌翻译](https://translate.google.cn/)
>
> 部分参考了[《JavaScript 编程精解(第 2 版)》](https://book.douban.com/subject/26707144/)
> [...] 置疑计算机能不能思考 [...] 就相当于置疑潜艇能不能游泳。
>
> 艾兹格尔·迪科斯特拉,《计算机科学的威胁》
![Picture of a package-delivery robot](img/chapter_picture_7.jpg)
![](img/7-0.png)
在“项目”章节中,我会在短时间内停止向你讲述新理论,相反我们会一起完成一个项目。 学习编程理论是必要的,但阅读和理解实际的计划同样重要。
@ -26,7 +36,7 @@ const roads = [
];
```
![The village of Meadowfield](img/village2x.png)
![](img/7-1.jpg)
村里的道路网络形成了一个图。 图是节点(村里的地点)与他们之间的边(道路)的集合。 这张图将成为我们的机器人在其中移动的世界。

BIN
img/7-0.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
img/7-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB