diff --git a/Assignment 2/src/ca/cosc3p91/a2/util/Print.java b/Assignment 2/src/ca/cosc3p91/a2/util/Print.java index bb406df..27e7398 100644 --- a/Assignment 2/src/ca/cosc3p91/a2/util/Print.java +++ b/Assignment 2/src/ca/cosc3p91/a2/util/Print.java @@ -181,12 +181,11 @@ public class Print { if (diff > 0) { int left = (int) Math.floor(diff / 2.0); + int right = (int) Math.ceil(diff / 2.0); int leftleft = (int) Math.floor(left / 2.0); int leftright = (int) Math.ceil(left / 2.0); - int right = (int) Math.ceil(diff / 2.0); - int rightleft = (int) Math.floor(right / 2.0); int rightright = (int) Math.ceil(right / 2.0);