Hangman the Game
The development of Hangman was a good introduction to PHP as that is what the functionality is written in. Supporting the HTML markdown language, this project was developed and hosted through the free web/database host InfinityFree. This gave us the ability to create a database of words based on length and pull them to the project for guessing. Below are some images of the game to give you an idea what you would see as a player.
The main game page
The popup when you lose
As you can see the game is relatively similar to what you would expect with most of the functionality being the focus point.
Game Play:
You will need to create an account that will be saved in our local database. Once you login, it will allow your scores to be placed against other players on the leader board. Once logged in, you will see a game board that will show you your game and a set of underscores to represent the length of the word you are to guess. You will enter a letter in the guess text box and once you click submit, if the letter is correct, it will appear in the word at the bottom. If the letter is incorrect, it will list it in the incorrect guess section and add a piece to your Hangman's noose. You will have the ability to play over and over as you desire or logout when you are finished.
Struggles:
There were some big learning curves in this project as I had never worked in PHP before. I spent a good majoriety of my time learning the language as I strived to implement it. This game is still under development to get the leaderboard complete as the task of passing session variables back and forth was a struggle. Below you will see some of the code base that I worked on and see some of the complexity of the language.
Some code built in PHP
The HTML code designing the page