Commit 5d08119c authored by Martin Schreiber's avatar Martin Schreiber
Browse files

fixed issue where drawVerticle() was checking wrong boxes

parent 5e1e2fb2
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment