I made a logic for my coding.
Open the file
Give users hints and show the chances
If users type the correct letter,
Display it on the line for string
Else users type the wrong letter,
Display it on the WrongLetter text box
Take the chance out
If users get the correct word
Congratulations sign pops up
Else
Lose sign pops up
If statement will be used to check the correct or incorrect letter and do some action after the condition is met. I`m also going to use for loop to check the alphabet which player typed.
No comments:
Post a Comment