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 { ...@@ -184,9 +184,9 @@ public class DotsAndBoxesGrid {
}else{ }else{
this.verticals[x][y] = true; this.verticals[x][y] = true;
// Try to claim the north or south boxes // Try to claim the left or right boxes
boolean claimN = claimBox(x, y-1, player); boolean claimN = claimBox(x, y, player);
boolean claimS = claimBox(x, y, player); boolean claimS = claimBox(x-1, y, player);
if (claimN || claimS) { if (claimN || claimS) {
notifyObservers(); notifyObservers();
return true; return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment