-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.dur
49 lines (40 loc) · 1.07 KB
/
example.dur
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
print """
88 88
88 ""
88
,adPPYb,88 88 88 8b,dPPYba, 88 ,adPPYYba, 8b,dPPYba,
a8" `Y88 88 88 88P' "Y8 88 "" `Y8 88P' `"8a
8b 88 88 88 88 88 ,adPPPPP88 88 88
"8a, ,d88 "8a, ,a88 88 88 88, ,88 88 88
`"8bbdP"Y8 `"YbbdP'Y8 88 88 `"8bbdP"Y8 88 88
@ UBC Launch Pad 2018!
"""
def DurianSwallower(durian) {
return true
}
let command
let sushi = false
let sashimi = false
scan command
def EatDurian() {
if EatDurianHelper("thiabaud", DurianSwallower) {
print "Delicious!"
} elif sushi or sashimi {
print "I think I prefer sushi or sashimi"
}
if command == "shit" {
print "Yikes"
} elif command == "vommit" {
print "BLURGHHHH"
} elif command == "cry" {
print "oh my god"
} else {
print "that was amazing!"
}
}
def EatDurianHelper(durian, callback) {
print durian&" is eaten!"
let success = callback(durian)
return success
}
EatDurian()