CSC 305 Laboratory Activity


Week 3


Lab #5

Work with your Sokoban lab partner on this lab.
Create a new scenario using SokobanLab.zip . Do any fixup needed to get the program running. Make sure your program follows the rules of the game properly. In particular, make sure the barrel can't be pushed onto a wall. Fix any defects.

Add a Direction enumeration as a new "Other" class in your scenario.
public enum Direction
{
east, west, north, south
}
Remove the static final int's; use Direction instead.

Refactor the code in Worker so there is no redundant code. Do the same thing for the other classes.

Refactor the design so that the World shares some of the responsibilities.

Clean up your code. It doesn't have to follow the class coding standard perfectly, but make sure it has good layout, indentation, and high level comments.


Demonstrate to the instructor an execution of your completed scenario.
       handin  graderjd  Lab5  Sokoban.zip