CS 106A Lecture 25: CS 106A Lecture Notes Week 8 Mon
Document Summary
Late days are allowed for hw 7: however, final is on friday, so must allocate time accordingly, only 1 week between when hw 6 and hw 7 are posted! More about critters: critter subclass extends critter and then overrides these methods by writing new ones in the subclass, incremental code development is important for this assignment. Need to test small pieces of code before doing more. Lots of trial and error, if and else statements. Fratboys stumble north then east until they reach the party. How to let fratboys talk with each other and go to an agreed place: create random generator in fratboy constructor. Getx and gety methods exist in critter world. Have fratboy move to north or east until it reaches party location. Then set partyx and partyy as private static variables and as certain values, then call new partyx and party.