-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCardArt.java
48 lines (40 loc) · 1.23 KB
/
CardArt.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
public class CardArt {
public static String[] makeCard(Card input) {
String[] _data= new String[9];
if (input.number!="10") {
_data[0]=" ________ ";
_data[1]="| " + input.number + " |";
_data[2]="| |";
_data[3]="| |";
_data[4]="| " + input.suit + " |";
_data[5]="| |";
_data[6]="| |";
_data[7]="| " + input.number + " |";
_data[8]=" ‾‾‾‾‾‾‾‾ ";
} else {
_data[0]=" ________ ";
_data[1]="| " + input.number + " |";
_data[2]="| |";
_data[3]="| |";
_data[4]="| " + input.suit + " |";
_data[5]="| |";
_data[6]="| |";
_data[7]="| " + input.number + " |";
_data[8]=" ‾‾‾‾‾‾‾‾ ";
}
return _data;
}
public static String[] backCard() {
String[] _data= new String[9];
_data[0]=" ________ ";
_data[1]="|░░░░░░░░|";
_data[2]="|░░░░░░░░|";
_data[3]="|░░░░░░░░|";
_data[4]="|░░░░░░░░|";
_data[5]="|░░░░░░░░|";
_data[6]="|░░░░░░░░|";
_data[7]="|░░░░░░░░|";
_data[8]=" ‾‾‾‾‾‾‾‾ ";
return _data;
}
}