@@ -28,19 +28,19 @@ They've also been given blank maps with a starting place marked YOU ARE HERE.
28
28
29
29
| Location Name | Coordinates | Quadrant |
30
30
| ------------------------------------- | ----------- | --------- |
31
- | Seaside Cottages | (1 , 'C') | Blue |
32
- | Aqua Lagoon (Island of Mystery) | (1 , 'F') | Yellow |
33
- | Deserted Docks | (2 , 'A') | Blue |
34
- | Spiky Rocks | (3 , 'D') | Yellow |
35
- | Abandoned Lighthouse | (4 , 'B') | Blue |
36
- | Hidden Spring (Island of Mystery) | (4 , 'E') | Yellow |
37
- | Stormy Breakwater | (5 , 'B') | Purple |
38
- | Old Schooner | (6 , 'A') | Purple |
39
- | Tangled Seaweed Patch | (6 , 'D') | Orange |
40
- | Quiet Inlet (Island of Mystery) | (7 , 'E') | Orange |
41
- | Windswept Hilltop (Island of Mystery) | (7 , 'F') | Orange |
42
- | Harbor Managers Office | (8 , 'A') | Purple |
43
- | Foggy Seacave | (8 , 'C') | Purple |
31
+ | Seaside Cottages | ('1' , 'C') | Blue |
32
+ | Aqua Lagoon (Island of Mystery) | ('1' , 'F') | Yellow |
33
+ | Deserted Docks | ('2' , 'A') | Blue |
34
+ | Spiky Rocks | ('3' , 'D') | Yellow |
35
+ | Abandoned Lighthouse | ('4' , 'B') | Blue |
36
+ | Hidden Spring (Island of Mystery) | ('4' , 'E') | Yellow |
37
+ | Stormy Breakwater | ('5' , 'B') | Purple |
38
+ | Old Schooner | ('6' , 'A') | Purple |
39
+ | Tangled Seaweed Patch | ('6' , 'D') | Orange |
40
+ | Quiet Inlet (Island of Mystery) | ('7' , 'E') | Orange |
41
+ | Windswept Hilltop (Island of Mystery) | ('7' , 'F') | Orange |
42
+ | Harbor Managers Office | ('8' , 'A') | Purple |
43
+ | Foggy Seacave | ('8' , 'C') | Purple |
44
44
45
45
</td ></tr >
46
46
</table >
@@ -59,7 +59,7 @@ julia> get_cooordinate( ("Scrimshaw Whale's Tooth", "2A") )
59
59
60
60
## 2. Format coordinates
61
61
62
- Implement the ` convert_coordinate() ` function that takes a coordinate in the format "2A" and returns a tuple in the format ` (2 , 'A') ` .
62
+ Implement the ` convert_coordinate() ` function that takes a coordinate in the format "2A" and returns a tuple in the format ` ('2' , 'A') ` .
63
63
64
64
``` julia-repl
65
65
julia> convert_coordinate("2A")
@@ -73,10 +73,10 @@ Return **`true`** if the coordinates "match", and return **`false`** if they do
73
73
Re-format coordinates as needed for accurate comparison.
74
74
75
75
``` julia-repl
76
- julia> compare_records("Brass Spyglass", "4B"), ("Seaside Cottages", (1 , 'C'), "blue")
76
+ julia> compare_records("Brass Spyglass", "4B"), ("Seaside Cottages", ('1' , 'C'), "blue")
77
77
false
78
78
79
- julia> compare_records("Model Ship in Large Bottle", "8A"), ("Harbor Managers Office", (8 , 'A'), "purple")
79
+ julia> compare_records("Model Ship in Large Bottle", "8A"), ("Harbor Managers Office", ('8' , 'A'), "purple")
80
80
true
81
81
```
82
82
@@ -88,9 +88,9 @@ If the coordinates _do not_ match, return an empty tuple.
88
88
Re-format coordinates as needed for accurate comparison.
89
89
90
90
``` julia-repl
91
- julia> create_record("Brass Spyglass", "4B"), ("Abandoned Lighthouse", (4 , 'B'), "Blue")
91
+ julia> create_record("Brass Spyglass", "4B"), ("Abandoned Lighthouse", ('4' , 'B'), "Blue")
92
92
("4B", "Abandoned Lighthouse", "Blue", "Brass Spyglass")
93
93
94
- julia> create_record("Brass Spyglass", "4B"), ("Seaside Cottages", (1 , 'C'), "Blue")
94
+ julia> create_record("Brass Spyglass", "4B"), ("Seaside Cottages", ('1' , 'C'), "Blue")
95
95
()
96
- ```
96
+ ```
0 commit comments