-
Notifications
You must be signed in to change notification settings - Fork 0
/
mansion_cleaner_1998.py
56 lines (51 loc) · 1.68 KB
/
mansion_cleaner_1998.py
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
import Game
import os
import time
def intro():
step1 = """ \n
.88b d88. .d8b. d8b db .d8888. d888888b .d88b. d8b db
88'YbdP`88 d8' `8b 888o 88 88' YP `88' .8P Y8. 888o 88
88 88 88 88ooo88 88V8o 88 `8bo. 88 88 88 88V8o 88
88 88 88 88~~~88 88 V8o88 `Y8b. 88 88 88 88 V8o88
88 88 88 88 88 88 V888 db 8D .88. `8b d8' 88 V888
YP YP YP YP YP VP V8P `8888Y' Y888888P `Y88P' VP V8P
"""
step2 = step1 + """ \n \n
.o88b. db d88888b .d8b. d8b db d88888b d8888b.
d8P Y8 88 88' d8' `8b 888o 88 88' 88 `8D
8P 88 88ooooo 88ooo88 88V8o 88 88ooooo 88oobY'
8b 88 88~~~~~ 88~~~88 88 V8o88 88~~~~~ 88`8b
Y8b d8 88booo. 88. 88 88 88 V888 88. 88 `88.
`Y88P' Y88888P Y88888P YP YP VP V8P Y88888P 88 YD
"""
step3 = step2 + """ \n \n
db .d888b. .d888b. .d888b.
o88 88' `8D 88' `8D 88 8D
88 `V8o88' `V8o88' `VoooY'
88 d8' d8' .d~~~b.
88 d8' d8' 88 8D
VP d8' d8' `Y888P'
"""
os.system('clear')
print(step1)
time.sleep(.5)
os.system('clear')
print(step2)
time.sleep(.5)
os.system('clear')
print(step3)
time.sleep(1)
os.system('clear')
def main():
intro()
"Create a new game"
game = Game.Game()
"Display the mansion"
mansion = game.get_current_mansion()
"Create the worker"
robot = game.create_new_robot(mansion)
robot.print_environment()
"Let's get to work !"
game.start_robot()
if __name__ == "__main__":
main()