COMP 310
Spring 2010

HW02: Grading Criteria

Home  Info  Owlspace  Resources

Assignment Instructions

Replicate the composition-based Ballworld demo.
Turn-in instructions:  Zip up the entire project directory and attach it with your submission.

Grading Criteria

  1. Replicating the demo's behavior
    1. Can type in either full or abbreviated strategy class name into text field.   - 5
    2. "Add" button adds strategy to both lists - 5
    3. "Make" button will create ball with selected strategy.  - 10
    4. "Combine" button will add a strategy (factory, actually) to the lists that is the combination of two selected strategies.  - 10
    5. "Make Switcher" makes a ball with a Switcher strategy (initial strategy unspecified here).   - 5
    6. "Switch" button will change all current Switcher balls to the selected behavior  -5
    7. At least 5 different types of strategies can be made and combined.''    - 10
    8. Discretionary pts - 5
  2. Architecture
    1. Ball class is fully concrete.   Only 1 ball class.    - 10
    2. All variant updating delegated to a strategy   - 10
    3. Strategy factories sent to/from the GUI.  - 5
    4. Combination of two strategies created through the use of a generic strategy that holds and executes two arbitrary strategies.   - 10
    5. Swtcher strategy is implemented as a wrapper over a single arbitrary strategy with a "setStrategy" accessor-type method to change the strategy.  -5
    6. Discretionary pts - 5

 


© 2010 by Stephen Wong