Using Your Account


Start by reading this: Cover letter

It contains much useful information on using your account.

Quick Start:

Getting your source code files onto the system:
First things first -- back up your files. If you make a mistake in this step, you might overwrite your files. Run 'ftp' on your machine, and connect to the host 'ftp.eng.utah.edu'. Use your username and password to log in. Use the ftp command 'lcd' to change the directory on your local machine to point to where you keep your source code files. Use the ftp command 'cd' to change the directory on the University of Utah machine, if neccessary. (It should already be set up pointing to your home directory.) Use the ftp command 'ascii' to tell ftp to transfer a text file. Use the command 'send ', followed by a filename, to transfer a file from your system to the University system. When done, just close your ftp program.

Compiling and running your file(s):
Assume that you have modified the random.cpp client, and you have called it 'tiger.cpp'. You also have the acm98.cpp and acm98.h files in the same directory. To compile it, type 'CC -o tiger tiger.cpp acm98.cpp'. If you do not get any errors, a file called 'tiger' will have been created. This is your random player.

To test your program, you need te_server and te_dispatch. Fortunately, these are already on the University machines in the directory '~pajensen/acm/sun'. You can copy these files to your local directory by typing 'cp ~pajensen/acm/sun/* .' This will copy te_server, te_dispatch, and random to your directory. Then, assuming you named your client 'tiger', you could test it by typing 'te_dispatch te_server tiger random random random 0'. A file called 'te.log' will be created with a trace of the games as they were played.

Editing:
A program called 'emacs' is available for editing your files. Type 'emacs ' followed by the name of the file you wish to edit. To save your work, press control-x followed by control-s. To exit emacs, press control-x followed by control-c. If you get emacs into a funny mode by accident, press control-g a few times to cancel out.