This is the marking script for Phase B.
Please note, this installation process is OS-independent, meaning it should work for Windows, OSX and Linux.
-
Download Python from the Python website (yellow button that says "Download Python X"). Doing this will also install an application called IDLE.
Mac users are recommended to download python through the HomeBrew package manager
-
Clone repository. Go to GitHub and download this repository. Do this by clicking the green button labelled "Code", then "Download ZIP". Extract the download to wherever you want.
-
Open file. Open IDLE, then go to "File -> Open". Navigate to the extracted ZIP file and open "main.py".
-
Run file with your answer. Once the file is opened, you can run it with "Run -> Run Module". The script runs our solution with "Maps/Map.txt" and compares the answer to what is given in "Answers/answer.txt". Furthermore, "Answers/PathPlanFound.txt" should contain your path plan (see Section 3.4).
I predict that more issues will be found over the next week. To avoid having to re-download this repository every time a bug is fixed, you can use Git.
- Download Git and GitHub Desktop.
- On this repository, go to "Code", then "Open in GitHub Desktop".
- Follow the instructions on GitHub Desktop to set up the folder for you.
- Now, you can update the copy of your script on your computer by clicking "Fetch Origin" and "Pull Origin".
Bug | Status |
---|---|
Final path wasn't added to the get_paths function, taking off marks for a correct answer. |
Fixed |
Student's PathPlanFound.txt was in a different location to the automarker's repo, giving an error. |
Fixed |
Linux is not supported - the ./sln is outdated. |
Fixed |
Current solution file does not support paths of steps > 40. | Fixed |
Solution does not accept a Map.txt that ends with a newline | Not fixed |
If you have found a bug, please message me on Teams. Come back for status updates on known bugs (see above). If you're familiar with GitHub, make a PR - it's a lot easier for me as well!