Project 1
Spring 2008
Due: Feb 7 @ 5 P.M.
4 points
For example,
> (preorder *tree*) (O R E G O ... )
For example,
>(dfs 'a 'g) (A C F E G) >(dfs 'f 'g) (F E G) >(dfs 'e 'c) NIL
f = 100A + 10B + C - (100D + 10E + F),
where
Implement Tanimoto's heuristic evaluation function. That is, when given a tic-tac-toe board configuration, the function returns f.
Extra Credit (1 point each)
;;;; ;;;; Name ;;;; E-mail Address ;;;; Platform: Windows, Linux (seva), etc. ;;;; Lisp Environment: clisp, gcl, cmucl ;;;; ;;;; In accordance with the class policies and Georgetown's Honor Code, ;;;; I certify that, with the exceptions of the course materials and those ;;;; items noted below, I have neither given nor received any assistance ;;;; on this project. ;;;;
You'll be using the submit program to submit your assignments. To get the submit program, on seva, type
seva% cp /home/maloofm/cosc387/submit.jar ./
Copies of the submit program from previous semesters will not work, so get a fresh copy.
If you need to submit a single file, assuming its name is p1.lisp, type
seva% java -jar submit.jar -a p1 -f p1.lispIf you need to submit multiple files, if you haven't already, place all of your code in a subdirectory named p1. To create this subdirectory, type
seva% mkdir p1To descend into the directory, type
seva% cd p1All of the files for your project should be in this directory. The submit program should be above this directory:
seva% ls .. p1/ submit.jar
If you need to include a message to me about your submission, then place the message in a file named README. Place the README file in the project's directory.
To move up from the p1 directory, type
seva% cd ..You should be above the p1 directory:
seva% ls p1/ submit.jar
(Additional useful Unix commands)
When you're ready to submit, change the name of the directory to your netid. For example, if your netid is maloofm, then rename the directory p1 by typing
seva% mv p1 maloofmCreate a zip file of the directory and its contents by typing
seva% zip -r p1.zip maloofm/*This command creates a zip file named p1.zip by recursively (-r) copying all of the files (*) from the directory maloofm/.
To submit the zip file type
seva% java -jar submit.jar -a p1 -f p1.zipp1 is the name of the assignment (-a) and p1.zip is the file (-f) to be submitted for that assignment.
If the program submits the file successfully, you will receive a receipt by e-mail at the address <netid>@georgetown.edu.
Submit your project only once.
Once you've submitted your project, it is important to keep an electronic copy on a university machine (e.g., seva) that preserves the modification date and time. If we lose your project or the submission system breaks, then we will need to look at the modification date and time of your project to ensure that you submitted it before it was due.
You can also change the directory's name back to the original name. For example,
seva% mv maloofm p1Note that changing the name of the directory does not change the dates of the files in the directory. You can also remove the zip file from your directory:
seva% rm p1.zip
You must submit your project before 5 PM on the due date.
Copyright © 2019 Mark Maloof. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.