-
Notifications
You must be signed in to change notification settings - Fork 28
/
main.py
30 lines (20 loc) · 1.03 KB
/
main.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
from factories import RoomFactory
from factories.BasementFactory import BasementFactory
from factories.CavesFactory import CavesFactory
from rooms.HardRoom import HardRoom
from rooms.NormalRoom import NormalRoom
def main():
basement_factory: RoomFactory = BasementFactory()
normal_room: NormalRoom = basement_factory.create_normal_room()
print(normal_room.generate_loot(), normal_room.generate_boss())
hard_room: HardRoom = basement_factory.create_hard_room()
print(hard_room.generate_loot(), hard_room.generate_boss())
new_hard_room: HardRoom = basement_factory.create_hard_room()
print('Secret:', new_hard_room.generate_secret(hard_room))
caves_factory: RoomFactory = CavesFactory()
caves_normal_room: NormalRoom = caves_factory.create_normal_room()
print(caves_normal_room.generate_loot(), caves_normal_room.generate_boss())
caves_hard_room: HardRoom = caves_factory.create_hard_room()
print('Secret: ', caves_hard_room.generate_secret(caves_normal_room))
if __name__ == '__main__':
main()