fix errors
The following two bugs to be fixed:
-
The code for checking if a square is complete is wrong. It just returns true at the moment, whereas it should test if the lines surrounding the square have been "drawn".
-
The grid doesn't complain if you "draw" a line that has already been drawn. It should throw an IllegalStateException.
Edited by Carla Baldassara