Skip to content

Commit

Permalink
small clarifications about code
Browse files Browse the repository at this point in the history
  • Loading branch information
akolotov committed Nov 27, 2024
1 parent 582c1b0 commit f28f6a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ def randomize_and_draw_layout_for_open(direction: Direction) -> np.ndarray:
every pixel is represented by three numbers corresponding to the BGR color.
"""

# Cannot use list(Section) because elements of Section are functions.
sections = [Section.NORTH, Section.WEST, Section.SOUTH, Section.EAST]

# Choose on which sides of the game mat the inner walls should be drawn
Expand Down Expand Up @@ -739,6 +740,7 @@ def randomize_and_draw_layout_for_obstacle(direction: Direction) -> np.ndarray:
obstacles_sets[mandatory_obstacles_set]
]

# Cannot use list(Section) because elements of Section are functions.
sections = [Section.NORTH, Section.WEST, Section.SOUTH, Section.EAST]

scheme = {
Expand Down

0 comments on commit f28f6a2

Please sign in to comment.