
Setting up the development environment
In this lesson you will be provided with an overview of how we will proceed with the game development.
In this lesson you will learn how to grab the word length of the selected word
In this lesson you will learn how to select a word at random from an array.
In this lesson you will learn how to select a random word from a text file.
In this lesson you will learn how to check the letter guesses against the selected word. At a very basic level, the initial functionality of the game is almost complete.
In this lesson you will create the session variables.
In this lesson you will create a basic HTML input form for the letter guesses. You will learn how to use a simple PHP function to generate the alphabet within each select option within the form.
In this lesson you will further develop the logic by checking if the submitted guessed letter:
has been guessed before
is contained in the word
In this lesson we will deal with the logic for when the number of lives is equal to zero.
In this lesson we deal with the logic for when the number of letters left to guess is greater than zero.
In this lesson we will deal with the logic for a win.
In this lesson you will be learn how to add Bootstrap CSS
In this lesson you will add a menu
In this lesson you will learn how to create include files in order to keep the code a little clutter free.
In this lesson you will style the Current State of Play output
In this lesson we will style the form using Bootstrap.
In this lesson we will create the row and columns for the canvas and scoreboard
In this lesson we will style the scoreboard.
In this lesson we will style the "You Won!" message with a Bootstrap alert box.
In this lesson we will style the "You Lost" message with a Bootstrap alert box.
In this lesson you will learn how to create the HTML canvas.
In this lesson you will set up the functions for the javascript. Doing this will make it easier for you to change the drawing.
In this lesson you will set up the javascript logic.
In this lesson you will draw on the HTML canvas.
In this lesson you will start to refactor the code and move the HTML into some template files.
In this lesson you will create functions for the code.
In this lesson you will move the input form and button to the middle under the current state of play output.
In this lesson you will learn how to add a dismissible alert box.
In this challenge you will need to add tracking for the total number of correct and incorrect guesses.
In this challenge you will learn how to add tracking for the total number of correct and incorrect guesses.
In this challenge you need to create a scoreboard reset button.
In this lesson you will learn one of many methods for creating a scoreboard reset button
In this challenge you will add a modal popup to confirm the scoreboard reset.
This challenge solution will show you how to add the modal popup to confirm the scoreboard reset.
In this challenge you need to add a rating option. Note that this challenge is significantly harder than the previous challenges.
This solution will show you how to add a rating option.
In this challenge you will need to replace the dropdown letter selector with some buttons.
This is the first part of the solution to the challenge. We will take care of creating the buttons.
In this part of the solution we will deal with the AJAX call.
The final part of the challenge where we complete the functions and test to see if everything is working.
In this challenge you need to implement multiple categories of words.
The challenge suggests 3 categories:
fruits
vegetables
science
However, you can implement whatever you wish.
The text files containing some words are attached as a download to this lecture.
In this lesson you will learn how to add the category icons.
In this lesson you will learn how to add the dropdown list of categories
In this lesson you will learn how to create the functions.
In this lesson you will learn how to change the icons based on the category.
This course is intended for those students who would like to complete a simple project. You should be familiar with PHP code, HTML, and CSS. However, each step is fully explained in detail. If you are a proficient PHP coder then this course is probably not right for you! If you are familiar with my other courses then you should really enjoy this one as you will create a full project.
As an experienced teacher, I often find that some courses are just too long and students lose interest. By keeping this course short (around 4 hours of content) and targeted, you should learn some valuable skills quickly and effectively without the need to sit through hours of code. You will follow along as you and I work together to develop scripts. You will learn about my thought processes as we develop the hangman game. You will also see how I avoid many errors that plague beginner coders.
In this course I will show you how to create a simple hangman game using PHP, HTML, CSS, Bootstrap, and Javascript.
You will learn the basic code structure and then begin to enhance the game by adding HTML5 canvas graphics and some Bootstrap styling. You will continue to develop the game as the lessons progress and learn how to integrate PHP code with HTML, CSS and jQuery.
At the end of the course you will find a series of challenges with full solutions. These are intended to help you advance the game with some new features.
I strongly recommend that you watch the free course preview videos to see if this course will be suitable for your level of ability as it is aimed at beginners. If you like the previews, then join today.
I look forward to welcoming you to the course.
THE DEVELOPMENT ENVIRONMENT
IMPORTANT: Please read carefully
You are free to use ANY development environment including the one that you are already using (if any). In this course, I show you how to download and install Visual Studio Code and MAMP (both of which are FREE and available for Mac and Windows).
If you are unsure about which code editor option is best for you then I encourage you to contact me and I will be happy to discuss the options with you.
You can also follow this course using your own preferred code editor.
Once again, using Visual Studio Code with MAMP is OPTIONAL. You can use ANY suitable development environment of your choosing.
MY PROMISES TO YOU
As a registered teacher (yes, I teach in a real classroom every day), I strongly believe it is my job to ensure you feel totally supported when taking my classes. I therefore promise the following:
to respect you as a student and individual with your own learning needs
to be courteous and polite in our interactions
to answer your questions about the course content promptly
to fix any issues you may encounter with the lessons
to respond promptly to feedback
I really do look forward to welcoming you to this course. I am confident you will enjoy the approach of learning what each line of code actually means.
Join the course today.