|
566 | 566 | " print('{} decided to move {}wards at location: {}'.format(str(agent)[1:-1], agent.direction.direction, agent.location))\n", |
567 | 567 | " agent.moveforward()\n", |
568 | 568 | " else:\n", |
569 | | - " print('{} decided to move {}wards at location: {}, but couldnt'.format(str(agent)[1:-1], agent.direction.direction, agent.location))\n", |
| 569 | + " print('{} decided to move {}wards at location: {}, but couldn\\'t'.format(str(agent)[1:-1], agent.direction.direction, agent.location))\n", |
570 | 570 | " agent.moveforward(False)\n", |
571 | 571 | " elif action == \"eat\":\n", |
572 | 572 | " items = self.list_things_at(agent.location, tclass=Food)\n", |
|
605 | 605 | "EnergeticBlindDog decided to move downwards at location: [0, 1]\n", |
606 | 606 | "EnergeticBlindDog drank Water at location: [0, 2]\n", |
607 | 607 | "EnergeticBlindDog decided to turnright at location: [0, 2]\n", |
608 | | - "EnergeticBlindDog decided to move leftwards at location: [0, 2], but couldnt\n", |
| 608 | + "EnergeticBlindDog decided to move leftwards at location: [0, 2], but couldn't\n", |
609 | 609 | "EnergeticBlindDog decided to turnright at location: [0, 2]\n", |
610 | 610 | "EnergeticBlindDog decided to turnright at location: [0, 2]\n", |
611 | 611 | "EnergeticBlindDog decided to turnleft at location: [0, 2]\n", |
612 | 612 | "EnergeticBlindDog decided to turnleft at location: [0, 2]\n", |
613 | | - "EnergeticBlindDog decided to move leftwards at location: [0, 2], but couldnt\n", |
| 613 | + "EnergeticBlindDog decided to move leftwards at location: [0, 2], but couldn't\n", |
614 | 614 | "EnergeticBlindDog decided to turnleft at location: [0, 2]\n", |
615 | 615 | "EnergeticBlindDog decided to turnright at location: [0, 2]\n", |
616 | | - "EnergeticBlindDog decided to move leftwards at location: [0, 2], but couldnt\n", |
| 616 | + "EnergeticBlindDog decided to move leftwards at location: [0, 2], but couldn't\n", |
617 | 617 | "EnergeticBlindDog decided to turnleft at location: [0, 2]\n", |
618 | | - "EnergeticBlindDog decided to move downwards at location: [0, 2], but couldnt\n", |
| 618 | + "EnergeticBlindDog decided to move downwards at location: [0, 2], but couldn't\n", |
619 | 619 | "EnergeticBlindDog decided to turnright at location: [0, 2]\n", |
620 | 620 | "EnergeticBlindDog decided to turnleft at location: [0, 2]\n", |
621 | 621 | "EnergeticBlindDog decided to turnleft at location: [0, 2]\n", |
|
684 | 684 | " print('{} decided to move {}wards at location: {}'.format(str(agent)[1:-1], agent.direction.direction, agent.location))\n", |
685 | 685 | " agent.moveforward()\n", |
686 | 686 | " else:\n", |
687 | | - " print('{} decided to move {}wards at location: {}, but couldnt'.format(str(agent)[1:-1], agent.direction.direction, agent.location))\n", |
| 687 | + " print('{} decided to move {}wards at location: {}, but couldn\\'t'.format(str(agent)[1:-1], agent.direction.direction, agent.location))\n", |
688 | 688 | " agent.moveforward(False)\n", |
689 | 689 | " elif action == \"eat\":\n", |
690 | 690 | " items = self.list_things_at(agent.location, tclass=Food)\n", |
|
1012 | 1012 | "name": "stdout", |
1013 | 1013 | "output_type": "stream", |
1014 | 1014 | "text": [ |
1015 | | - "EnergeticBlindDog decided to move leftwards at location: [0, 3], but couldnt\n" |
| 1015 | + "EnergeticBlindDog decided to move leftwards at location: [0, 3], but couldn't\n" |
1016 | 1016 | ] |
1017 | 1017 | }, |
1018 | 1018 | { |
|
1069 | 1069 | "name": "stdout", |
1070 | 1070 | "output_type": "stream", |
1071 | 1071 | "text": [ |
1072 | | - "EnergeticBlindDog decided to move leftwards at location: [0, 3], but couldnt\n" |
| 1072 | + "EnergeticBlindDog decided to move leftwards at location: [0, 3], but couldn't\n" |
1073 | 1073 | ] |
1074 | 1074 | }, |
1075 | 1075 | { |
|
0 commit comments