CS306 Processing Systems and Structures Lockwood, Spring 2004

Machine Problem 2: Grading Report

(First Half of Bakery of Hanoi)

Please visit a TA in the Urbauer 115 Laboratory during Lab Hours and ask him or her
to complete and submit this form when you demonstrate your machine problem.

The TA should: check your solutions and complete all fields on this form.

Once this form is submitted, use your own machine to upload code for your machine problem

Student ID Use same ID as selected in HW0. Enter in ALL CAPS
Student Name (first)
(last)

CategoryPointsMinMax
PrintString
  • Displays text strings with proper attribute
  • Check that messages print on opening screens and within the body of the program.
  • As with all routines, check that library version of code was not called by reviewing list of library routines printed when the program terminates.
05
ClearScreen
  • Clears all of the characters from the default, 80x25 text-mode video screen
  • Sets all attributes to to have a white background with black text
05
Random
  • Generates a good mix of values in the range from {0..2}
  • Verified mix of numbers that print on 2nd opening screen
  • Should be something like: 1 2 1 0 1 2 0 1 1 2,
  • Actual values can be different
010
DrawScreen
  • Displays static text and buttons (Title, etc.). (Artistic liberties encouraged)
  • Displays current values for MOVES and TIERS
  • Displays stacked tiers (without spaces between non-adjacent tiers)
  • Contains modular subroutines which avoid code duplication
010
ReDrawScreen
  • Updates MOVES & TIERS and Redraws cake tiers without redrawing entire screen
010
ResetGame
  • Places all tiers of cake at the bakery
  • Resets MOVES=0
05
Distribute
  • Randomly distributes tiers among locations
  • Need NOT match random values produced by library code but
    MUST evenly distribute tiers to each location
010
MoveTier
  • Correctly Moves one tier of cake from SI to DI
  • Disallows invalid movement and displays error message
010
AutoSolve
  • Automatically finds solution from original (RESET) position: +6
  • Automatically finds solution from ANY position: +6
  • Contains a compact, modular, recursive call
015
MouseCtrl
  • Allows all six buttons to be pressed (AX=0..5)
  • Allows tiers to be moved (AX=6, SI & DI set as necessary)
  • May "round" location to nearest button or tier.
010
Main
  • Invokes other procedures as needed
  • Replaces MainLIB
010
Sub-Total (Sum of scores)
  • For MP2, student may choose to complete any subset of procedures
  • Maximum Score for MP2 is 50 points.
050
Penalty/Bonus
Before 5pm on deadline: +1 pt/weekday (max 5)
After 5pm on deadline: -10 pts/weekday
-50+5
Total (Sum of scores) 055

Originality Verification
In the box below, have the student type:
"I assert that all work in this assignment is my own"
If that is not 100% correct, have the student detail exactly what
part(s) of their work is not theirs and who wrote it or who they
worked with in order to complete the assignemnt.

TA Remarks