Code pass 2
[Here is all the code I wrote. My methodology is listed below.]
First, I will try making some graphics to represent a mine, or the
number of surrounding mines. So, it seems apparent that Mine and
EmptySquare classes will have to contain some sort of graphic that will
be hidden until the square is uncovered. For now, I will make a black
circle for the mine, and a number for the EmptySquare.
After that, I will add the code for a flag. This is pretty simple, and
is more a matter of tweaking numbers so the flag is positioned nicely. I
make use of the _flagged boolean instance variable of Squares, by hiding
the flag if it is already flagged, and showing it if isn't.
[More journal yet to be written down...]
Last modified: Wed Mar 11 03:44:20 EST 1998