In this programming exercise, you will augment a paint program with undo functionality. The primary purpose is to help you learn the architectural requirements of supporting undo in a static client application. In addition, for those who are planning to use web programming for their class projects, I hope this serves
The requirements are as follows:
- Undo button and functionality, with infinite levels of undo
- Redo button and functionality, able to restore image to same state as before the undo(s)
- Display the current command stack below the image
- Undo/redo work with any of the tools available (i.e., crayon, marker, eraser, any size, any color, etc.)
- Use a Command design pattern. (Do not save the entire state of the image.)
- Readable code
- Comments explain any non-obvious lines/functions
- Consistent style
- Write a brief (100-400 words) explanation of your implementation strategy in a text file named undo.txt.
Optional: Let me know how long this assignment took you, and if you have any feedback to make it better for next time this class is offered. Save this as feedback.txt.
Send a zip file by email, named with your username (e.g., "aq.zip").
Full credit will be given to all submissions that meet the above requirements.
Optional: Interesting extensions (e.g., tree, selective, collaborative, time-based, etc.) will be given a bonus of 10% to 30% (depending on the complexity and completeness). Make a note in the email and in your undo.txt if you do this.