|
98 | 98 | "\n",
|
99 | 99 | "class Park(Environment):\n",
|
100 | 100 | " def percept(self, agent):\n",
|
101 |
| - " '''prints & return a list of things that are in our agent's location'''\n", |
| 101 | + " '''return a list of things that are in our agent's location'''\n", |
102 | 102 | " things = self.list_things_at(agent.location)\n",
|
103 | 103 | " return things\n",
|
104 | 104 | " \n",
|
|
307 | 307 | "source": [
|
308 | 308 | "class Park2D(XYEnvironment):\n",
|
309 | 309 | " def percept(self, agent):\n",
|
310 |
| - " '''prints & return a list of things that are in our agent's location'''\n", |
| 310 | + " '''return a list of things that are in our agent's location'''\n", |
311 | 311 | " things = self.list_things_at(agent.location)\n",
|
312 | 312 | " return things\n",
|
313 | 313 | " \n",
|
|
536 | 536 | "source": [
|
537 | 537 | "class Park2D(XYEnvironment):\n",
|
538 | 538 | " def percept(self, agent):\n",
|
539 |
| - " '''prints & return a list of things that are in our agent's location'''\n", |
| 539 | + " '''return a list of things that are in our agent's location'''\n", |
540 | 540 | " things = self.list_things_at(agent.location)\n",
|
541 | 541 | " return things\n",
|
542 | 542 | " \n",
|
|
649 | 649 | "source": [
|
650 | 650 | "class GraphicPark(GraphicEnvironment):\n",
|
651 | 651 | " def percept(self, agent):\n",
|
652 |
| - " '''prints & return a list of things that are in our agent's location'''\n", |
| 652 | + " '''return a list of things that are in our agent's location'''\n", |
653 | 653 | " things = self.list_things_at(agent.location)\n",
|
654 | 654 | " return things\n",
|
655 | 655 | " \n",
|
|
1441 | 1441 | "name": "python",
|
1442 | 1442 | "nbconvert_exporter": "python",
|
1443 | 1443 | "pygments_lexer": "ipython3",
|
1444 |
| - "version": "3.6.5" |
| 1444 | + "version": "3.6.7" |
1445 | 1445 | }
|
1446 | 1446 | },
|
1447 | 1447 | "nbformat": 4,
|
|
0 commit comments