You can pass the path to a maze file as the first parameter to the program (args), or you can paste a maze file into the console. You may need to hit control-D after pasting the maze file in before the program starts processing. To run the lab with the name of a file, it would look something like:
javac *.java && java MazeSolver ../mazes/EasyMaze.txt
Tonight we're going to install some additional developer software on your computer. We're installing a program called MacPorts, which in turn will install other programs.
To do this, visit the MacPorts Installation Page and follow the directions for your version of macOS. A brief overview:
xcode-select --install
, and click the Install button to install the required command line developer tools. Don't worry if you see a message telling you the software cannot be installed because it is not currently available from the Software Update Server. This usually means you already have the latest version installed.sudo xcodebuild -license
and accept the terms of the Xcode license.port
that you can run in the terminal. Try running port version
and if you don't get an error, you're all set.sudo port install maven3
. If prompted to "select" maven3, issue the requested command (e.g., sudo port select --set maven maven3
).