swapnilsparsh / 30DaysOfJavaScript

Projects made during the 30 days of the JavaScript challenge
https://30daysofjs.netlify.app
MIT License
935 stars 642 forks source link

The game doesn't end, remains active [94 - guess word] #1509

Closed Dhruv-Gaba closed 5 months ago

Dhruv-Gaba commented 5 months ago

What happened?

Description

Even when we lose all our lives, the game doesn't end. we can continue to play even after losing all our lives until we win. the game should ideally restart when we lose all our lives.

https://github.com/swapnilsparsh/30DaysOfJavaScript/assets/141745373/0bea87f7-e33c-418b-890a-0b6dcef214e6

How can we reproduce this bug?

After exhausting all our lives in the game, the game should end, instead of remaining active.

Desktop Information (Optional)

No response

Urgency (Optional)

Medium priority

swapnilsparsh commented 5 months ago

@Dhruv-Gaba All the best 👍🏻