Project Outline
Your job is to write a simulation that takes in the description of the
tunnels and intersections. The first phase of this project is to design
the program. We will do this in class on Thursday of Sixth Week. Once
we have a design, we will write up the rest of the project
specifications. The second phase will be to create the simulation so
that two humans may play the game - one acting as the gardener, one the
woodchuck. The second phase will be due on Thursday of Eighth week.
The final phase of the project will be to allow the computer
to take over the job of either the gardener or the woodchuck or both.
You will need to develop different strategies to help the woodchuck or
the gardener to win.
You may work on this project in groups but I think you will get more out
of this project if you work alone.
As with most programming projects, be sure that the work turned in is
your own. You are welcome to discuss problems with other groups, but
please do NOT look at another group's code or let another group look at
your code. You should also acknowledge any assistance you recieve on
this project somewhere in your documentation.
Be sure to document your project using the standards of this
department. In other words, there should be lots of comments
throughout your code describing what you are doing and why. Javadocs
would be a great addition to your program.
The goal of this project is to use a graph to represent a problem and
then strategize ways to solve the problem. We will be using the graph
class from the first programming project to represent our graphs. You
can still display the graph by displaying the adjacency matrix. This
project is based on "Shannon's Switching Game", a project from the
Applied Graph Theory and Algorithms class at UCSC.*
Your Tasks
I have been contacted by a master gardener who has a problem at all the
gardens that she manages. The woodchucks eat the flower bulbs in the
flower gardens and the vegetables in the vegetable garden. She has
found a way to map out the tunnels of the woodchucks between their hole
and the gardens. She doesn't want to harm the woodchucks, just stop the
woodchucks from getting to her garden. She has found a way to
completely destroy a tunnel between two intersection points. The woodchuck
has also found a way to reinforce his tunnel so that the gardener cannot
destroy the tunnel.
How to turn in your code:
* http://www.soe.ucsc.edu/classes/cmpe177/Fall03/project.pdf