posted 12 years ago
Hello forum,
I'm working on an assignment requiring me to create a checkerboard with 64 squares. I've got three classes: A viewer, Checkerboard component, and a checkerboard which constructs the squares.
My attempt so far is to create 2 row methods in the CHeckerboard Class, one that starts a row off with a white square; the second starting with a black square
In the Checkerboard component class, I want to simply call each one four times changing the y coordinate so it lines each row up.
However, this doesn't seem to work. What am I doing wrong?
Viewer Class
Checkerboard Component Class:
Checkerboard Class