CS 101: Oregon Trail Course Project -- Known Errata List
Below is a list of errata in the Oregon Trail implementation labs/assignments.
Your assignments will not be penalized for not conforming to the following list,
but if you choose to use the classes that you have implemented, you
must make sure that your implementations address these errata, or your classes
will not work with the classes that we provide.
Location class
- getIsVisited() vs. isVisited(). Location's accessor method
should be called getIsVisited().
- Mutator validity checks.The mutators setPosCol() and setPosRow() in Location should test against
BOARD_WIDTH (posCol) and BOARD_HEIGHT (posRow) for validity. These constants were not available
in the code distribution for the assignment. They are available now in current versions of Game.java
that are being distributed.
- Location constructor. If the random value generated is less than Game.DEPOT_CHANCE, then a
new Depot should be created by calling the one-parameter specific constructor as follows:
depot = new Depot(this);
Person class
- getIsAlive() vs. isAlive(). Person's accessor method for the isAlive property
should be called getIsAlive().
Parser class
- printInventory(). When calling the 2-parameter printInventory() method from the 1-parameter printInventory method,
the second parameter to printInventory() should be always be false.