Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hangman game continues after all lives are lost #5

Open
MoNakouzi opened this issue Aug 17, 2022 · 3 comments
Open

Hangman game continues after all lives are lost #5

MoNakouzi opened this issue Aug 17, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@MoNakouzi
Copy link
Contributor

In the hangman game, there are 5 lives per turn. However, when those 5 lives are lost, the player can still choose letters of the alphabet and continue playing until they find the word. I would suggest that the game is reset when all lives are lost, and the correct word is displayed after the player loses (when they lose all 5 lives).

@ssahibsingh
Copy link
Member

@MoNakouzi Thank you for your suggestion. We have added these things in the game. I want you to play the game now and if you find anything then feel free to comment on this issue or generate another issue.

@ssahibsingh ssahibsingh added the enhancement New feature or request label Aug 24, 2022
@MoNakouzi
Copy link
Contributor Author

Got it, I'll try it out as soon as I can.

@MoNakouzi
Copy link
Contributor Author

@ssahibsingh Thank you for considering my suggestion, the lives mechanisms was fixed well. However, when you lose all the lives and the reset button is clicked, only the wrong letters that were used in the previous round (the one you lost) light up (i.e., are not grey), and all the other letters are turned off (i.e., are grey). In addition to that, those letters that were not used in the previous round are not clickable (when you click them, you don't lose lives or gain a letter into the blank spaces of the word). This repeats with each reset button press, where all wrong letters used previously are usable in the next round, while the rest of the letters are not clickable (they become grey, similar to when you press a wrong letter).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants