int width = 800;
int height = 600;
int interval = 1000 / 60;
int score_player1 = 0;
int score_player2 = 0;
int racket_width = 10;
int racket_height = 80;
int racket_speed = 8;
int racket_left_x = 10;
int racket_left_y = 50;
int racket_right_x = width - racket_width - 10;
int racket_right_y = 50;
Full code (without the class for the ball): http://pastebin.com/TA9NkV5c
The margin from the right racket to right side of the window is smaller than the left side. The variables for those are right calculated, but still, it is not equally.
https://i.stack.imgur.com/OjqtZ.png Link to the image