From 6a44b074f0169a1b0f9e92347af929c5e471746e Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 18 Apr 2015 13:44:44 +0200 Subject: Reorganised projects --- Week4 Drawing loipes/src/week4/Week4.java | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Week4 Drawing loipes/src/week4/Week4.java (limited to 'Week4 Drawing loipes/src/week4') 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); + + } + +} -- cgit v1.2.3