-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFancyMirror.java
69 lines (69 loc) · 2.03 KB
/
FancyMirror.java
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//????????
public class FancyMirror {//it's just bigger/smaller, not even sure why it's fancy anyway
public static int scalar = 25;//embiggens the smallest mirror
public static void main(String[] args){
Line();//calls Line();
Loop();//calls Loop();
Loop2();//calls Loop2();
Line();//calls Line(); *again* as long as Line() hasn't gotten tired yet
}//this is a closing bracket
public static void Line(){
/*we take in a single scalar and by that
*a magical ASCII line rides out into the sunset
*
*which is magically four times the size of the scalar
*
*amazing
*/
System.out.print("#");
for(int size=1; size<=scalar*4; size++){
System.out.print("=");//generates equality
}
System.out.println("#");//#=========# is a terrible hashtag
}
public static void Loop() {
/*This is some magic code right here
* It takes in a single constraint scalar
* and by putting for *inside* for
* we get out a diamond
*
* pretty cool huh*/
for (int line=1;line<=scalar;line++){
System.out.print("|");
for(int spaces=1; spaces<=line*-2+(scalar*2);spaces++){
System.out.print(" ");
}
System.out.print("<>");//it's a rhombus!
for(int dots=1; dots<=(line*4-4);dots++){
System.out.print(".");
}
System.out.print("<>");
for(int spaces=1; spaces<=line*-2+(scalar*2);spaces++){
System.out.print(" ");
}
System.out.print("|\n");
}
}
public static void Loop2() {//Loop2() is lazy, copied its strategy from Loop(), so don't give it too much credit
for (int line=1;line<=scalar;line++){
System.out.print("|");//prints a vertical line, pretty cool huh?
for(int spaces=1; spaces<=line*2-2;spaces++){
System.out.print(" ");
}
System.out.print("<>");//html everywhere
for(int dots=1; dots<=line*-4+scalar*4;dots++){
System.out.print(".");
}
System.out.print("<>");//everywhere
for(int spaces=1; spaces<=line*2-2;spaces++){
System.out.print(" ");
}
System.out.print("|\n");
}
}
}
/* This is the end of the file
*
*
*
* j/k going to end on line 69 haha */