Akki-jaiswal / Akki-jaiswal/pong-game

[Feature] Add Restart Button Next to Pause/Resume in Pong Game

Open
#201 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
22
Forks
116
PR merge metrics
No merged PRs in 30d

Description

## 🎯 Feature Request
Currently, the game only has **Pause/Resume** functionality.
To improve usability, we can add a **Restart button** next to Pause/Resume, so the player can restart the game anytime without refreshing the page.

---

## ✅ Tasks
- [ ] Add a Restart button in the game controls (UI).
- [ ] On click, reset ball position, scores, and paddle positions.
- [ ] Ensure Pause/Resume still works correctly after restart.
- [ ] Test in all difficulty modes.

---

## 💡 Expected Outcome
Players will be able to restart the game anytime during play, improving the user experience.

---

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.