- Command File – commands.txt
- Solution
PLACE 0,0,NORTH
MOVE
REPORT
LEFT
RIGHT
A combination of above commands in any order
Solution contains two below projects:
- PacmanSimulator
- PacmanSimulatorUnitTest
The solution is a .Net Console Application for determining location of Pacman by taking placement, move and rotate commands in a text file targeting .Net Framework 4.6.1.
Run Instructions:
- Application takes 1 command line argument which is commands file url. For example: C:\Users\User\Desktop\commands.txt
- If argument is not provided, program will run test command file which is placed in solution bin\Debug folder.
- If running on Visual Studio, project properties ->Debug tab -> add argument.
- If running on CMD, append command line argument after .exe name.
- Run the application via CMD or through visual studio.
Unit Test Project for testing Pacman Simulator project targeting .Net Framework 4.6.1 for testing placement, move and rotate functions.
Run Instructions:
- Open solution on visual studio
- Go to Test -> Run - > All Tests
- View results in Output and Test Explorer window