CS120, Fall 2007


Assignment #9

TARGET DATE: Monday, December 10.


This is the conclusion of the project begun in Assignment 8 to create a Processing applet that allows a user to solve the "eight puzzle" with a mouse, as illustrated here.

You'll be starting with quite a bit of code, which can be found (along with its behavior) on this page. Besides the files EightPuzzleFramework, EightPuzzle.java (a pared-down version of what you did in Assignment 8), PushBar.pde and Square.pde, you will also need the various fonts indicated. We'll go over how to put all this together in lab 7, as well as how to proceed.

In the final lab of the semester, we'll also see how to convert this to a real Java applet and post it on a web-page (like in the links above). This will be a straightforward but fun part of the assignment; more detail to follow.

Now when you're done, you might find yourself wanting some further challenges. There are a number of directions you can take here. Some ideas, in roughly increasing order of difficulty (none of which, I confess, have been implemented by me except for the first):

Back to CS 120 Home Page