diff --git a/Dereu_Bols.jar b/Dereu_Bols.jar deleted file mode 100644 index 56a8653..0000000 Binary files a/Dereu_Bols.jar and /dev/null differ diff --git a/OGP1718-Worms/src/worms/model/Worm.java b/OGP1718-Worms/src/worms/model/Worm.java index 55c7db8..5260659 100644 --- a/OGP1718-Worms/src/worms/model/Worm.java +++ b/OGP1718-Worms/src/worms/model/Worm.java @@ -28,7 +28,7 @@ import static java.lang.Math.*; * Arthur Bols 1e bachelor Informatica * Leen Dereu 1e bachelor Informatica * - * URL: TODO + * URL: https://github.com/KUL-ogp/ogp1718-project-bols-dereu */ public class Worm { @@ -575,12 +575,12 @@ public class Worm { */ public void move(int numberSteps) throws IllegalArgumentException { if (numberSteps < 0) - throw new IllegalArgumentException(); // TODO add decent exception msg + throw new IllegalArgumentException(); long cost = (long) ceil(abs(cos(getOrientation())) + abs(4 * sin(getOrientation()))) * numberSteps; if (cost > getActionPoints()) - throw new IllegalArgumentException(); // TODO add decent exception msg + throw new IllegalArgumentException(); double distanceX = this.radius * cos(getOrientation()); double distanceY = this.radius * sin(getOrientation());