Professional Documents
Culture Documents
Assignment 6 For CISC
Assignment 6 For CISC
Assignment 6 For CISC
a legal path through the hopscotch board containing the number of points in the list
Squares.
21
3/21/2014
comments -- it will help you keep things straight and get your code working. It also makes it
easier for you to get help when you need it. If you follow a different scheme than the one I
suggested above and it's not all working, it's particularly important that you give a clear
explanation for what each of your helper predicates is supposed to do, so that we can
evaluate each one separately.
Even though you won't earn style points for this assignment, the header comment at the
beginning of the program is a requirement. If you don't have a comment at the beginning
identifying yourself (by name, student number or NetID) and the other members of your group
if applicable, we will deduct an administrative penalty. Identifying yourself in the header
comment is important to help us make sure that the right mark goes to the right person.
Some Examples: AssnZExamples.hs contains several examples of hopscotch boards and their
best paths. They apply to this assignment too. The TAs will be using different examples to tes
your predicate, just to make sure that your functions aren't tailored specifically to these
examples.
This page maintained by Margaret Lamb, Queen's University, Kingston, Ontario. Last modified 03/22/2014
02:34:29
http://research.cs.queensu.ca/home/cisc260/2014w/assignments/assn6/assn6.html
3/21/Z014
You don't have to indicate the total number of points, just the path. You may assume that the
first parameter of hopscotch will be bound.
If your hopscotch predicate works without error, you will get full correctness points. If you're
having trouble, though, here is a suggested strategy:
1. Write a predicate called legaipath, where legaipath (squares, Path) means that path is
http://research.cs.q ueensu.ca/home/cisc260/2014w/assig nments/assn6/assn6.html
1/3