Lecture notes for Computer Science I by James Tam Return to the course web page

CPSC 231: Assignment 5 (Marking)

SUBMISSION REQUIREMENTS

Item

Effect on grade

Contact information not included in the assignment submission -6 marks
   

 

PROGRAMMING STYLE

How often are general style requirements followed e.g., good naming conventions, appropriate use of named constants, code uses consistent alignment and whitespace to make it easier to read and understand, functions implement one well defined task and don't exceed a screen in length

Actual mark

Max

  Never
(0 marks)
Sometimes
(4 marks)
Mostly
(6 marks)
Always
(10 marks)
   

TOTAL FOR STYLE

 

10

 

DOCUMENTATION: INTERNAL TO PROGRAM

Example things to include: some sort of versioning system, a description of the features of the program (what it does rather than how it does it), limitations of the program (features not implemented or cases that it can't handle).

Actual mark

Max

 

 

No documentation
(0 marks)
Major omissions
(2 marks)
Minor omissions
(8 marks)
Appropriate level
(10 marks)
   

TOTAL FOR DOCUMENTATION

 

10

 

DOCUMENTATION: EXTERNAL README FILE (formats allowed: text, doc, html, pdf.

 

 

Includes instructions about how to run the program (especially important if there's additional multimedia requirements such as images), what functional requirements (listed in the assignment) were actually implemented. Your mark for this component will be determined by the completeness (e.g., don't omit crucial instructions) and correctness (e.g., don't list features that you didn't complete) of the README file.

Actual mark

Max

TOTAL FOR EXTERNAL DOCUMENTATION

 

10

 

PROGRAM STRUCTURE

 

 

 

Actual mark

Max

Erebor is declared as a list of objects (actually a reference to a list of references to objects)   2
Class MEObject defined as specified in the assignment   1
Class Hobbit defined as specified in the assignment   2

TOTAL FOR STRUCTURE

 

5

 

 

PROGRAM FUNCTIONALITY2

 Feature

Actual mark

Max

  Displays introduction   1
  Displays conclusion   1
  Starting positions read from file, objects initialized in the list   2
  Displays world annotated with column and row numbering   2
  Main menu displays directions of movement   1
  Game repeats until the player quits   2
  Each turn divided into sub-turns ordered as specified in the assignment   4
  The cheat menu can be accessed from the main menu   2
  Debug mode can be toggled from the cheat menu   4
  Invulnerability mode can be toggled from the cheat menu   4
  As the world is displayed Bilbo's updated and correct: hit points and treasure stats are displayed.   2
  Bilbo can move (additional marks will be awarded as each of the following features are implemented)   16
    Bilbo can move to an adjacent square (4 marks)    
    Bilbo can move onto an empty square (2 marks)    
    Bilbo can pick up treasure (4 marks)    
    Array bounds checked (2 marks)    
    Game reacts properly if Bilbo moves onto fire e.g., appearance toggles on/off, damage taken (4 marks)    
  Mode 2 implemented  (additional marks will be awarded as each of the following features are implemented)   12
    Fire randomly appears in main hall, previous fires die out (6 marks)    
    Fire randomly appears in empty squares or on top of Bilbo only (2 marks)    
    Fire damages Bilbo, appearance toggles off the next turn (4 marks)    
  Mode 3 implemented  (additional marks will be awarded as each of the following features are implemented)   10
    Warning message appears "Smaug moving..." (2 marks)    
    Fire moves 0 - 3 squares up the tunnel (4 marks)    
    Fire damages Bilbo whose appearance changes (4 marks)    
  Bilbo can be slain   6
    Appearance changes (2 marks)    
    Game ends with suitable consolation message (4 marks)    
  Bilbo can exit   4
  Tracks high score   6

 

TOTAL FUNCTIONALITY

 

79

 

Alternate feature: program displays output graphically via QuickDraw rather than using text (input can still come from the console).

 

8

2 For the most part you can implement these features in whatever order that you wish. In some cases order is obviously important e.g., to implement Mode 2 and/or Mode 3 before marks will be awarded for implementing invulnerability mode, before marks can be awarded for displaying treasure Bilbo must be able to move etc.

Total score Letter
A+ 107 - 114
A 99 - 106
A- 91 - 98
B+ 83 - 90
B 75 - 82
B- 67 - 74
C+ 58 - 66
C 48 - 57
C- 39 - 47
D+ 30 - 38
D 21 - 29
D- 12 - 20
F   0 - 11

3 Although the max score is 114, this can be further increased by implementing the extra bonus (graphical output) to yield an extra 8 marks

TOTAL MARKS

 

LETTER GRADE