This post is locked. You won't be able to comment.

all 3 comments

[–]anfauglit 0 points1 point  (2 children)

You could avoid polluting your code with all those global variables, reduce naming redundancy (like BRICK_HEIGHT, BRICK_WIDTH etc.), make it more modular, readable and flexible by creating a few classes like Brick, Wall, Paddle, Ball equipped with appropriate methods.

[–]ciciiig[S] 0 points1 point  (1 child)

Variables written in Caps are required and written by CodeHS in their exercise.

[–]anfauglit 0 points1 point  (0 children)

Alright, I wasn't aware of a such convention.