Robots game activity

Bring the stack of CRC index cards you developed in lab yesterday to lecture, one for each class you hope to design in your robots program. This activity will involve elaboration of these cards, giving greater specificity to responsibilities and describing each class's attributes.

Your task in class is to embellish these cards as follows:

  1. Each card should list of member functions and instance variables of the class. (Instance variables are the private variables.) Insofar as possible, you should give the type/class of all parameters and return values of the member functions, and the types of the instance variables.

  2. One additional card lists non-member functions (if any) along with the purpose of each. Again, give the type/class of all parameters and return values.

  3. Number all member functions and procedures in the order you intend to code and test them. You'll put the number (1) in front of all methods and procedures you can test on their own without writing any others. Put a (2) in front of procedures you can't write until you've written procedures from (1), and so forth.

  4. Identify with a (*) all methods which appear challenging to write. These are ones which you hope you can break up later into smaller procedures once you've thought about the robots program more.