-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.java
More file actions
40 lines (31 loc) · 1.26 KB
/
Copy pathMain.java
File metadata and controls
40 lines (31 loc) · 1.26 KB
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
public class Main {
public static void main(String args[])
{
Player p1 = new Player("Nick");
DebtCollectorActionCard dc = new DebtCollectorActionCard();
DoubleTheRentActionCard dr = new DoubleTheRentActionCard();
ForcedDealActionCard fd = new ForcedDealActionCard();
SlyDealActionCard sd = new SlyDealActionCard();
BirthdayActionCard b = new BirthdayActionCard();
NormalRentActionCard blueGreenRent =
new NormalRentActionCard(PropertyColor.BLUE, PropertyColor.GREEN);
RainbowRentActionCard rainbowRent = new RainbowRentActionCard();
NormalPropertyCard boardwalk =
new NormalPropertyCard(PropertyColor.BLUE);
WildPropertyCard w = new WildPropertyCard(PropertyColor.BLUE, PropertyColor.GREEN);
w.setCurrColor(PropertyColor.BLUE);
System.out.println(w.getValue());
System.out.println(w.getCurrColor());
w.setCurrColor(PropertyColor.GREEN);
System.out.println(w.getCurrColor());
RainbowPropertyCard r = new RainbowPropertyCard();
r.setCurrColor(PropertyColor.PINK);
System.out.println(r.getCurrColor());
r.setCurrColor(PropertyColor.RED);
System.out.println(r.getCurrColor());
System.out.println(r.getValue());
System.out.println(r.getName());
System.out.println(r.getCanPutInBank());
ForeclosureActionCard f = new ForeclosureActionCard();
}
}