Skip to content

To Fix bugs in Dots and Boxes game

Bug 1: The code for checking if a square is complete is incorrect. Bug 2: The grid doesn't complain if a line is drawn more than once; it should throw an IllegalStateException.