This question is asking you to characterize the set C and the set S (as well as their intersection and their "complement" -- the things that are not in either set). All nodes that are in set S have some thing or things in common. What are they? Perhaps they all have at least 3 adjacent nodes, or they all are coloured with colour 1. This is the sort of thing I'm looking for.
This means that grace days cannot be used to hand the assignment in beyond Thursday. (Friday is a statutory holiday, the university is closed and buildings are locked.)
This extension applies to downtown students only.
Question: I think there is a bug that cause people to shift from place to place, this might be the problem... also, should I fix it?
} else if (targetLocation.col != currentLocation.col) {
// Move horizontally.
int colMod = (currentLocation.col < targetLocation.col) ? 1 : -1;
registerMove(new GridLoc(currentLocation.col,
^^^ this should be row
currentLocation.col+colMod));
Could any TA comfirm this? Thanks. If you feel that you need to explain something to the marker in more detail than is appropriate for comments, it is okay if do submit an additional, brief, written component.
for (int i=0; i < numAnimals; i++) {
It should count up to numEntities:
for (int i=0; i < numEntities; i++) {
Thanks to James Ho for pointing this out.
crashed = true;
should read
crash();
Otherwise, the Animals won't go free when an Engine
crashes, since Engine.crash() never gets called.
Thanks to Adam Foster for pointing this out.
First, comment out this line in TrainSet.TrainSet():
buildTrack();
And in A4Main.main(), replace
trainSet.setVisible(true);
with these two lines:
trainSet.show();
trainSet.buildTrack();