From 04d4ea27dbd3f3f5eb285311248b9fe8210a4248 Mon Sep 17 00:00:00 2001 From: lee Date: Fri, 10 Jul 2020 10:11:50 +0100 Subject: [PATCH] lem-in: adding bonus question --- subjects/lem-in/README.md | 2 +- subjects/lem-in/audit/README.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/subjects/lem-in/README.md b/subjects/lem-in/README.md index 6b106b1c..b04ceafd 100644 --- a/subjects/lem-in/README.md +++ b/subjects/lem-in/README.md @@ -18,7 +18,7 @@ You need to find the quickest way to get `n` ants across a colony (composed of r - At the beginning of the game, all the ants are in the room `##start`. The goal is to bring them to the room `##end` with as few moves as possible. - The shortest path is not necessarily the simplest. - Some colonies will have many rooms and many links, but no path between `##start` and `##end`. -- Some will have rooms that link to themselves, sending your path-search spinning in circles, some will have too many/too few ants, no `##start` or `##end`, duplicated rooms, links to unknown rooms, rooms with invalid coordinates and a variety of other invalid or poorly-formatted input. In this cases the program will return an error message `ERROR: invalid data format`. +- Some will have rooms that link to themselves, sending your path-search spinning in circles, some will have too many/too few ants, no `##start` or `##end`, duplicated rooms, links to unknown rooms, rooms with invalid coordinates and a variety of other invalid or poorly-formatted input. In this cases the program will return an error message `ERROR: invalid data format`. If you want, you can elaborate the error message by being more specific (example: `ERROR: invalid data format, invalid number of Ants` and `ERROR: invalid data format, no start room found`). You must display your results on the standard output in the following format : diff --git a/subjects/lem-in/audit/README.md b/subjects/lem-in/audit/README.md index b14233ae..492d884b 100644 --- a/subjects/lem-in/audit/README.md +++ b/subjects/lem-in/audit/README.md @@ -291,7 +291,7 @@ ERROR: invalid data format student$ ``` -###### Does it present the right result as above? +###### Does it present at least the result above? ##### Try running the program with example06.txt and with 100 ants. @@ -325,6 +325,8 @@ student$ ###### +Is it possible to see the ants moving? +###### +Is the error output more specific? (example: `"ERROR: invalid data format, invalid number of Ants"` or `"ERROR: invalid data format, no start room found"`) + ###### +Is the visualizer in 3D?ยท4 #### Basic