aboutsummaryrefslogtreecommitdiff
path: root/Week4/src/week4/Week4.java
blob: e523a5400dd071177cffbe2ff1bcd79a292db211 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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);
        
    }
    
}