How chatGPT would solve the MCG Mars Rover test
The Mars Rover project simulates the movement of a rover exploring a rectangular plateau on Mars. The rover receives a set of instructions that tell it how to explore the plateau. The project is designed to demonstrate the application of object-oriented programming principles and to provide a platform for practicing unit testing.
- Simulate rover movements based on commands.
- Handle multiple rovers on the same plateau.
- Prevent rovers from moving off the plateau.
- Python 3.8 or higher
-
Clone the repository:
git clone https://github.com/KodyFernandes/MarsRover_ChatGPT.git cd MarsRover_ChatGPT
-
(Optional) Set up a virtual environment:
conda create -n mars_rover_env
-
Install dependencies: *Currently no external dependencies are required
To run the Mars Rover program with an input file:
- Create an input file or use an existing one in the resources directory. Example of input format:
5 5 1 2 N LMLMLMLMM 3 3 E MMRMMRMRRM
- Run the program using:
python -m src.main < resources/input1.txt
To run automated tests for this project:
- Navigate to the project root directory.
- Run the following command
python -m unittest discover -s tests
Contributions to the Mars Rover project are welcome. Please ensure to update tests as appropriate.
This project is licensed under the MIT License - see the LICENSE.md file for details.
The following is the system message for the chatGPT instance:
"You are a hyper advanced software engineering AI assistant."
The following is the prompt that was used to generate this application.
"I have a coding test I would like you to do. Please provide all necessary classes and related code that will solve the problem.
Please provide tests for both happy path and edge case scenarios.
Please provide documentation where necessary.
Here is the problem:
Pasted the mars rover document
"