Hey, and welcome to the deal game where we're going to be creating this game from scratch, so let
me show you what we're going to build in the upcoming lessons.
We're going to be building this interactive game out from scratch.
All of the source code is included.
So I do suggest that you tried it for yourself.
So the objective of the game is to select the best case, walk out of it with the best deal possible.
You started the game and you make the selection of one of the 16 cases.
And this is all dynamic.
So selected number seven, and now we need to select three more cases.
It gives us a little bit of a message whether doing good or bad.
And then somewhere along the way, it prevents us with an offer.
So our offer No one is or 31 or we can select four more cases.
So if we accept the offer, the game is over.
We walk away with 31 credits and if we decline it, then we select four more cases.
So how about we decline, not try to play through?
It doesn't look like I'm doing great at the job.
And that was even worse.
And that's the fun of the game.
It can go either way.
It's all random.
It's all based on the player's interaction.
So now we've got another offer of eight credits or we can select three more cases.
How about we decline it and we try to go for this and see what we can do?
So the great job and too bad I got rid of another big one.
So now my offer is down to seven.
What am I going to do?
Going to continue to play through, hold on and try to get the best deal possible.
So offer number four or we can select one more case.
So how about we select one more case got offer number five, which is the last offer.
So if I accept it, then I get three credits.
If I decline it, I walk away with whatever was in my case.
And either way I get to determine whether I made a good deal or a bad deal.
So it's decline it.
My case had five, so the last one was a good deal.
But hanging on and it losing all of those larger offers wasn't so much of a great deal.
So that's the essence of the game.
And then of course, you can play through it over and over again.
We'll also show you what was within the hidden cases.
So if I go and if I start out right away and if I just accept the offer and if I accept it, it's going
to show me all of the values that were hidden that I didn't select, but also tell me what I had within
my case.
So this game, of course, predominantly JavaScript.
And that's what we're going to focus the upcoming the lessons, because we do want to focus on JavaScript.
So there is some HTML and CSFs, which I am going to go through rather quickly, and you can skip through
this and customize it as needed.
And then, of course, JavaScript is at the very heart of what we're going to be doing and the upcoming
lessons.
If you have any questions or comments about the code, please let me know within the Q&A section of
the course.
I'm always happy to hear from you.
While source code is included and one of the best ways to learn coding is to try it for yourself, I'm
going to encourage you to keep trying and to try to build your own version of the game.
But also the objective of this course is to get familiar with working with JavaScript and get comfortable
with what JavaScript can do.
So a lot of the stuff that I'm presenting, it's meant US practice for JavaScript in order so that you
can reuse it in your own projects.
And also, please feel free to extend on this project, customize the game to your liking.
So I know you're excited to get started.
So let's dive right in and start building out some amazing things with JavaScript.