aboutsummaryrefslogtreecommitdiff
path: root/Week4 Drawing loipes/src/week4
diff options
context:
space:
mode:
Diffstat (limited to 'Week4 Drawing loipes/src/week4')
-rw-r--r--Week4 Drawing loipes/src/week4/Week4.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/Week4 Drawing loipes/src/week4/Week4.java b/Week4 Drawing loipes/src/week4/Week4.java
new file mode 100644
index 0000000..e523a54
--- /dev/null
+++ b/Week4 Drawing loipes/src/week4/Week4.java
@@ -0,0 +1,36 @@
+package week4;
+
+import java.util.Scanner;
+import oo15loipe.AsciiArt;
+import oo15loipe.Loipe;
+import oo15loipe.LoipePlaatje;
+
+/**
+ * Solutions for assignment 4
+ *
+ * @author Thijs Heijligenberg, s4451414, Camil Staps, s4498062
+ */
+public class Week4 {
+
+ /**
+ * Create a Loipe, draw it using LoipePlaatje and AsciiArt
+ *
+ * @param args the command line arguments (are ignored)
+ */
+ public static void main(String[] args) {
+ Scanner sc = new Scanner(System.in);
+
+ Loipe l = new Loipe("srssrsslsllsss");
+
+ LoipePlaatje lp = new LoipePlaatje(l);
+ lp.teken();
+
+ AsciiArt aa = new AsciiArt(l);
+ do {
+ aa.setPosition(l.stap());
+ aa.teken();
+ } while (sc.nextLine() != null);
+
+ }
+
+}