Skip to content

Errors in code

The code for checking if a square is complete is wrong. It just returns true at the moment, where as 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.