-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsustainPlusPlus_ending_ver.java
83 lines (75 loc) · 2.39 KB
/
sustainPlusPlus_ending_ver.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package extraLarge;
/**
* The goal of this program is to obtain a HEALTHY
* and SUSTAINABLE relationship, darling.
*
* @author Cassie Wei from Mili
*/
class sustainPlusPlus {
public static void main(String[] args) {
World world = new World();
Life me = new Ghost();
Life you = new Ghost();
/**
* If abstraction is the definition of beauty
* Are those of us chasing after clarity
* A representation of ugly?
*/
world.getObjects().sortAttribute("beauty");
if (world.getObjects().getFirst().getArtTags().indexOf("abstruct") != -) {
me.addPhysicalAttribute("ugly");
you.addPhysicalAttribute("ugly");
}
world.giveBestAward("ugly", me);
world.giveBestAward("ugly", you);
/**
* CALL ME MOMMY
* JUST LIKE YOUR FANTASY
* There is no crime in ideality
*/
if (you.getFetishes().searchByType("name calling", "mommy") != -1) {
you.addToMemory(me);
you.setNicknameFor(you.getMommy(me), "mommy");
}
Rule r = new Rule("Oedipus complex is okay", true);
world.addRule(r);
/**
* MUX>>DEMUX
* Can't you understand me?
* I'm not mine NAND I'm not yours
* Ah
*/
try {
you.decodeMessage(me.codeMessage("I'm not mine NAND I'm not yours.", "mux"), "mux");
} catch (InsufficientIntelligenceQuotientException e) {
world.sendMessage("Oh you dummy.", you);
me.announce("Ah");
}
/**
* This could end right here if you don't let it out
* Let it out
*/
if (you.getThoughts().size() != 0) {
try {
you.sayTo(you.getThoughts(), me);
you.clearThoughts();
} catch (TooMuchOFAPussyException e) {
world.getRelationship(me, you).end();
}
}
/**
* Give up or give me your all
* Tell me now
* Tell me now
*/
if (you.getMemories(me).getLove() < 0.5) {
world.getRelationship(me, you).setSustain(0);
} else {
you.transferThoughts(me);
you.transferAttributes(me);
// sustain++;
world.getRelationship(me, you).increaseSustain();
}
// TO BE CONTINUED
}
}