From the course: Building Website Interactivity with JavaScript

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Challenge: Finalizing the basic gameplay

Challenge: Finalizing the basic gameplay - JavaScript Tutorial

From the course: Building Website Interactivity with JavaScript

Challenge: Finalizing the basic gameplay

(soft upbeat music) - [Instructor] In this challenge, we're going to finalize the gameplay by checking a completed solution against a list of words and telling players whether they found one of those solutions. So I've made a few changes here in the files for this video, including adding a messages area with a dialogue for both a correct or incorrect message. In the script file, we have a solutions word list that we'll be able to check against, and I also added a reference to the messages region. And then finally, in our game animation CSS file, despite its name, we have some starter CSS for the messages area itself, and then some basic styles for dialogues in general. Let's go over the parameters of this challenge. We're calling this the Game Completion Challenge. The notes are, we're going to check the solution when it's appropriate, in other words, when all slots have a tile. If the solution is a word in the word list, we should show a success dialogue. If not, we should show the…

Contents