There are 2 coding errors to be fixed in the assignment. 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.
Bugs fixed in commit da4899d5
There are 2 coding errors to be fixed in the assignment. 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.
There are 2 coding errors to be fixed in the assignment. 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.
Peter Wallbank (2b560878) at 27 Jul 04:35
There are 2 coding errors to be fixed in the assignment. 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.
Peter Wallbank (2b560878) at 27 Jul 04:28
modified: src/main/java/dotsandboxes/Main.java
Peter Wallbank (53fceabc) at 21 Jul 10:03
Initial revision. Displays but game not finished
... and 7 more commits