-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreprocessing.py
More file actions
52 lines (44 loc) · 1.81 KB
/
preprocessing.py
File metadata and controls
52 lines (44 loc) · 1.81 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
41
42
43
44
45
46
47
48
49
50
51
52
https://powcoder.com
代写代考加微信 powcoder
Assignment Project Exam Help
Add WeChat powcoder
from creature import Creature
from item import Item
from location import Location
def process_locations(source):
"""
Parameters:
- `source`: The (path to) a configuration file as described under the
heading `<PATHS>` (page 3 of the assignment description).
TODO: Read the given configuration file and return a list of Location
objects based on the file's contents.
"""
def process_items(source, locations):
"""
Parameters:
- `source`: The (path to) a configuration file as described under the
heading `<ITEMS>` (page 4 of the assignment description.)
- `locations`: A list of Location objects.
TODO: Read the given configuration file and return a list of Item objects
based on the file's contents. You might also want to link the new Item
objects to their starting Locations.
"""
def process_creatures(source, locations):
"""
Parameters:
- `source`: The (path to) a configuration file as described under the
heading `<CHASERS>` (page 5 of the assignment description.)
- `locations`: A list of Location objects.
TODO: Read the given configuration file and return a list of Creature
objects based on the file's contents. You might also wan to find a way to
link each Goosechaser with their starting locations.
"""
def process_exits(source, locations):
"""
Parameters:
- `source`: The (path to) a configuration file as described under the
heading `<EXITS>` (page 5 of the assignment description.)
- `locations`: A list of Location objects.
TODO: Read the given configuration file and use this to indicate which
Location objects allow the use of the FLEE command.
"""