Wednesday, October 22, 2008

ICA-CP: 10/22/08

Good morning!

Today, continue working on Karel assignments 4-8. We have new brainfood. Also, below is a summary of what we discussed last class. Your Karel assignments 4-8 will be graded using these as part of the criteria.

Program Style for Karel Programs
Basic Each move Karel makes is a separate command in the program.
Intermediate: The separate commands that repeat are grouped by iterate commands. If/Else and while loops are used.
Advanced: The define command is used to create new commands. These commands are used in the program. For example, a turnright command is created by including three turnleft statements in a define.
Elegant: The program is designed to traverse a maze by using conditions which indicate to Karel which way to move. In other words, the simulation makes decisions and gets around obstables on its own. The program may work on more than one maze.

Program Comments Required
// [Programmer's Name
// [Date]
// [Program Name]
// [Program Start Conditions]
// [Goal and/or Purpose of the Program

Due Date for Karel Assignments 4-8: Friday, 10/24/08

0 Comments:

Post a Comment

<< Home