A Ping Pong game project
- There will be 2 rods at the top and bottom of the screen.
- Both rods will be controlled with the same keys. In other words, they will move together.
- When the game starts, an alert should be shown about the highest score and the player who scored it. If there is no such record, say 'this is your first time'.
- If the score becomes highest, then store the name and max-score in local storage.
- After every round, when one wins an alert will be displayed showing the winning player and his score.
- Every round should start when the 'Enter' key is pressed. ( You can use another key as well )
- The rods will only move horizontally using the 'a' and 'd' keys. ( You can use other keys as well )
- The losing rod will get the ball for the next match and the rods and ball will move to center.
- The score will be counted from the start of every match.