My first project was a simple hangman game, turns out such a simple game wasn’t that easy to code! The program first asks you type the word your opponent has to guess, then it checks if it meets all the criteria, i.e., is the word long enough, does it have invalid characters? Then it’s your turn to guess the letter!
The program checks if your input is valid, if you’ve already guessed the letter and if the guessed letter is correct etc. Then it inserts the letter(s) in the right spot and keeps count of how many times you’ve got it wrong. This build is really bare bone, but it does what it’s supposed to be doing! I was really proud of myself after successfully writing my program, since i didn’t use any tutorials to help me build it.
I faced issues when the word had the same letter more than once because the built-in functions had problems dealing with that situation. I got around that thanks to using for-loops.









