Q: How do I ask a question?
A: Send mail to hspc@cs.utah.edu
Q (4/22/99): For our 1999 take home problem do we need our program
write the directions for the nanobot to a text file?
A: No. Your program should write the directions to cout (standard
out). If you want a run saved, you can redirect cout to a file. If you want
a run saved you can use:
nanobot.exe > out.txt
or something similar.
Q (4/22/99): Does our program need to read in a ".map" file?
A: No. Your solution should do no file IO. Everything comes in
via cin. (Note that the skeleton we gave you parses the map information from
cin.) If you want to get input from a file, you can pipe it in. For example:
type maze.map | nanobot.exe
Q (4/25/99): Can we have our program output multiple answers on the
screen, with the last one outputed being the one used?
A: No. Every command you output will be interpreted as a command
to the nanobot.
Q (4/27/99): Not a question, but a suggestion on I/O from the judges.
A: Here is a nice command for unix systems that will run and simulate your
solution, and log both the output of your solution and the output of the
simulator to log files:
solution < mapfile | tee solution.log | simulate mapfile | tee simulate.log
Where solution is the executable of your solution, and mapfile is the
map you wish to run it on. solution.log will contain the output of your
program, and simulate.log will contain the output of the simulation.
For example, to test on plain.map:
solution < plain.map | tee solution.log | simulate plain.map | tee simulate.log