AP COMPUTER
SCIENCE
WORKSHOP:
MARINE
BIOLOGY
CASE
STUDY
Tricky Bits and Gotchas
- apmatrix of Fish -- need default fish ("undefined fish")
to represent "no fish"
- Environment AllFish returns clones -- this leads
to need for Environment Update
- Display algorithm traverses both 2-D matrix and 1-D vector
(this solution is easier to justify with an unbounded ocean)
- Program should really have more than one sort (display order and
"current"/processing order)
- Two variations of RandInt: r.RandInt(2) vs.
r.RandInt(0, 1)
- RandGen internals: treat as black box!
- setw in Display: not in AP subset (I think), but useful if
you set WIDTH to 3 (another recommendation: use '~' for empty spaces)
- Display needs to change for unbounded ocean