« All Events
2 PM – Intro To Python – Gamas
August 28, 2021 @ 2:00 pm - 3:00 pm
Today We Do
- We continue with Hangman game. We display the clues (“?”) properly according to the number of letter inside the secret word
- We learned how to use a different unicode symbol other than heart symbol.
- We learned how to reduce the health when user made a wrong guess.
- When health == 0, we break from the loop.
Homework
- When health == 0, right now it will break from the loop, but it will print “Congratulation you have won the game.” which is wrong. Change the code so when you break from the loop, when the player’s health is finished, it needs to display “HA HA HA!! you lose: <secret word>”