A program about a lonely imaginary robotic hoover that wakes up trapped in an imaginary room needing cleaning. Unsure of what to do next, the hoover simply starts doing what it knows best -- cleaning.
- Read/perform the steps found in the Prerequisites section below.
- After cloning the repository, navigate in the command prompt to the directory in which you cloned the repo.
- Run the command
npm install
. This will install all dependencies needed to run the program. - You are now ready to run the program. Run
node TheRoombaProblem.js <file-name>
where<file-name>
is a text file containing the roomba problem information. This text file must live in the root of the repository. An example is included with the repository calledinput.txt
. To run this example, runnode TheRoombaProblem.js input.txt
. - To run more tests, simply create more text files at the root of the repository and run the command found in Step 4 with the appropriate file name.
- In this README file, anytime you see the term command prompt, that is referencing the Windows command prompt. If you are on a Mac, the equivalent of the command prompt would be the terminal. If you on a Linux, the equivalent of the command prompt would be the bash. Use the appropriate command line interface based on your OS.
- Validate that you have Node installed on your system. If you are unsure, see my notes in the Installing Node section below.
- Finally, download a copy of this repository and save it to your local file system. If you are tech savvy, clone the repository.
- Navigate to the Node.js downloads page found here: https://nodejs.org/en/download/
- Download the LTS version of Node for the appropriate OS you are using.
- Run the executable that is downloaded. Follow the steps as prescribed in the install wizard.
- After installation, open up your command prompt. Type "node -v" and press enter. The version of Node running on your machine should be outputted in the console.