Skip to content

Commit

Permalink
Replaced magic numbers with constants
Browse files Browse the repository at this point in the history
  • Loading branch information
WaterNewt committed Mar 21, 2024
1 parent 4d10a44 commit 5e42f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def generate_boundaries():
boundaries.append(Wall(border[0], border[1]))

for _ in range(5):
start = (random.randint(0, 1280), random.randint(0, 720))
end = (random.randint(0, 1280), random.randint(0, 720))
start = (random.randint(0, width), random.randint(0, height))
end = (random.randint(0, width), random.randint(0, height))
boundaries.append(Wall(start, end))


Expand Down

0 comments on commit 5e42f2a

Please sign in to comment.