bdekonin/ft_transcendence

Variable name changes for more clarity

Closed this issue · 1 comments

  • In the Paddle interface, the left and right variables are boolean values that indicate whether the paddle is moving left or right. However, it's not immediately clear what these values represent, since the name of the interface is Paddle and not something like PaddleInput. To make the purpose of these variables more clear, you might consider renaming them to something like isMovingLeft and isMovingRight.

  • In the Ball interface, the xVel and yVel variables represent the velocity of the ball in the x and y directions, respectively. However, the name of the variables doesn't make it immediately clear what they represent. To make the purpose of these variables more clear, you might consider renaming them to something like xVelocity and yVelocity.

Unnecessary.