Skip to content

Commit

Permalink
Add another solution to AB_1_ANewJourney.md (#508)
Browse files Browse the repository at this point in the history
Because the other two solutions both feel like cheats, even though they're unquestionably valid.
  • Loading branch information
pppery committed Apr 13, 2023
1 parent 99f0b8b commit c0fb28b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions solutions/bonus/AB_1_ANewJourney.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,13 @@ var t2 = teleporters[1];
t1.setTarget(t2);
t2.setTarget(t1);
```
## Pppery: logging
```
for (var i = map.getWidth() - 20; i < map.getWidth(); i++) {
for (var j = 0; j < 20; j++) {
if (map.getObjectTypeAt(i, j) != "exit") {
map.placeObject(i, j, "empty");
}
}
}
```

0 comments on commit c0fb28b

Please sign in to comment.