Skip to content

Commit

Permalink
add export html
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuShuwen committed May 2, 2018
1 parent 4fd6bdc commit c7fd226
Showing 1 changed file with 23 additions and 47 deletions.
70 changes: 23 additions & 47 deletions P1_Robot_Controller/Robot Controller.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## 机器人控制器\n",
"## 控制机器人漫步\n",
"\n",
"在这个项目中,你将使用刚刚学到的知识,尝试根据要求,编写代码,来控制一个机器人,在模拟环境中行走,并找到目标宝藏。\n",
"\n",
Expand All @@ -14,7 +14,7 @@
"2. 控制机器人随机行动\n",
"3. 控制机器人走到终点\n",
"\n",
"如果遇到问题,你可以请教助教,或者提交项目获得指导"
"如果遇到问题,你可以提交项目获得指导"
]
},
{
Expand Down Expand Up @@ -60,22 +60,9 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"maze-id 1-1525081664\n",
"[[2, 2, 3, 0, 2, 0],\n",
" [1, 2, 2, 0, 2, 0],\n",
" [0, 0, 2, 0, 2, 0],\n",
" [2, 0, 2, 0, 0, 0],\n",
" [2, 0, 0, 0, 2, 0]]\n"
]
}
],
"outputs": [],
"source": [
"import helper\n",
"\n",
Expand All @@ -97,10 +84,8 @@
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": true
},
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"rows = None #TODO 1模拟环境的行数\n",
Expand Down Expand Up @@ -131,10 +116,8 @@
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": true
},
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"number_of_barriers_row1 = None #TODO 4计算模拟环境中,第一行的的障碍物个数。\n",
Expand All @@ -157,9 +140,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"loc_map = {} #TODO 5按照上述要求创建字典\n",
Expand Down Expand Up @@ -204,9 +185,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"def is_move_valid_sepcial(loc, act):\n",
Expand Down Expand Up @@ -234,9 +213,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"def is_move_valid(env_data, loc, act):\n",
Expand Down Expand Up @@ -292,9 +269,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"## TODO 9 从头定义、实现你的函数"
Expand All @@ -316,9 +291,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"##TODO 10 从头定义、实现你的函数"
Expand All @@ -344,9 +317,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"##TODO 11 从头实现你的函数"
Expand Down Expand Up @@ -375,13 +346,18 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"##TODO 12 实现你的算法"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"> 注意: 当你写完了所有的代码,并且回答了所有的问题。你就可以把你的 iPython Notebook 导出成 HTML 文件。你可以在菜单栏,这样导出**File -> Download as -> HTML (.html)**把这个 HTML 和这个 iPython notebook 一起做为你的作业提交。"
]
}
],
"metadata": {
Expand All @@ -400,7 +376,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.1"
"version": "3.6.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit c7fd226

Please sign in to comment.