On Wed, Mar 31, 2010 at 6:41 PM, Olayemi A F Oyebode
<hollaat...@gmail.com> wrote:
For selection, we are told "you should put most of this code in the base class, Checkerboard". I'm confused about a few things:
1. Is this a recommendation or requirement?
This is a recommendation. It means that you should put the code in a place where it's shared, so you only have to debug it once. Don't repeat yourself.
2. How much of the code should be in CheckerBoard.mxml. Should it be aware of Checker objects?
Do what's sensible from a software design standpoint. Checkerboard.mxml can certainly be aware of Checker objects.
3. Are we allowed to add eventlisteners to the checkerboard?
Yes.
Cheers,
Rob Miller