C++ Style
and Documentation |
- Your name and date are at the top of each file
- KAREL PROGRAMS
- Situation - Complete description of the world
- Include robot's state (position, direction, # of beepers)
- Location of wall segments
- Task: Complete description of job to be done
- Algorithm: How the task will be accomplished
- EACH FUNCTION
- Meaningful name and short description
- INDENTATION CONVENTIONS
- { } on their own lines vertically aligned
- One tab inside braces
|
|