Skip to content
Snippets Groups Projects
Commit 5d08119c authored by Martin Schreiber's avatar Martin Schreiber
Browse files

fixed issue where drawVerticle() was checking wrong boxes

parent 5e1e2fb2
No related branches found
No related tags found
No related merge requests found
......@@ -184,9 +184,9 @@ public class DotsAndBoxesGrid {
}else{
this.verticals[x][y] = true;
// Try to claim the north or south boxes
boolean claimN = claimBox(x, y-1, player);
boolean claimS = claimBox(x, y, player);
// Try to claim the left or right boxes
boolean claimN = claimBox(x, y, player);
boolean claimS = claimBox(x-1, y, player);
if (claimN || claimS) {
notifyObservers();
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment