Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lolipopshock committed Jun 5, 2018
1 parent 7b0dc2f commit be26fc3
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 13 deletions.
Binary file removed .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.ipynb_checkpoints
*/.ipynb_checkpoints/*
*/__pycache__
.DS_Store
Binary file removed Image Classifier/.DS_Store
Binary file not shown.
46 changes: 33 additions & 13 deletions P1_Robot_Controller/Robot Controller.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import helper\n",
Expand All @@ -83,7 +85,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"rows = None #TODO 1模拟环境的行数\n",
Expand Down Expand Up @@ -115,12 +119,14 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"number_of_barriers_row1 = None #TODO 4计算模拟环境中,第一行的的障碍物个数。\n",
"\n",
"number_of_barriers_col3 = None #TODO 5计算模拟环境中,第三行的的障碍物个数"
"number_of_barriers_col3 = None #TODO 5计算模拟环境中,第三列的的障碍物个数"
]
},
{
Expand All @@ -131,14 +137,16 @@
"\n",
"**任务3:**在如下代码中:\n",
"\n",
"1. 创建一个名为 `loc_map` 的字典,它有两个键值,分别为 `start` 和 `dest`,对应的值分别为起点和目标点的坐标,它们以如 `(1,1)` 的形式保存为元组。\n",
"1. 创建一个名为 `loc_map` 的字典,它有两个键值,分别为 `start` 和 `destination`,对应的值分别为起点和目标点的坐标,它们以如 `(1,1)` 的形式保存为元组。\n",
"2. 从字典中取出 `start` 对应的值,保存在 `car_current_loc` 对应的变量中,这个变量表示小车现在的位置。"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"loc_map = {} #TODO 6按照上述要求创建字典\n",
Expand Down Expand Up @@ -183,7 +191,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"def is_move_valid_sepcial(loc, act):\n",
Expand Down Expand Up @@ -211,7 +221,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"def is_move_valid(env_data, loc, act):\n",
Expand Down Expand Up @@ -267,7 +279,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"## TODO 10 从头定义、实现你的函数"
Expand All @@ -289,7 +303,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"##TODO 11 从头定义、实现你的函数"
Expand All @@ -315,7 +331,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"##TODO 12 从头实现你的函数"
Expand Down Expand Up @@ -348,7 +366,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"##TODO 13 实现你的算法"
Expand Down Expand Up @@ -378,7 +398,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
"version": "3.6.1"
}
},
"nbformat": 4,
Expand Down

0 comments on commit be26fc3

Please sign in to comment.