1
00:00:00,180 --> 00:00:05,940
Hey, and welcome to the deal game where we're going to be creating this game from scratch, so let

2
00:00:05,940 --> 00:00:08,510
me show you what we're going to build in the upcoming lessons.

3
00:00:08,520 --> 00:00:12,020
We're going to be building this interactive game out from scratch.

4
00:00:12,030 --> 00:00:13,980
All of the source code is included.

5
00:00:14,010 --> 00:00:15,930
So I do suggest that you tried it for yourself.

6
00:00:16,380 --> 00:00:23,060
So the objective of the game is to select the best case, walk out of it with the best deal possible.

7
00:00:23,070 --> 00:00:27,030
You started the game and you make the selection of one of the 16 cases.

8
00:00:27,180 --> 00:00:28,530
And this is all dynamic.

9
00:00:28,540 --> 00:00:32,390
So selected number seven, and now we need to select three more cases.

10
00:00:32,400 --> 00:00:35,960
It gives us a little bit of a message whether doing good or bad.

11
00:00:36,210 --> 00:00:38,850
And then somewhere along the way, it prevents us with an offer.

12
00:00:38,860 --> 00:00:44,160
So our offer No one is or 31 or we can select four more cases.

13
00:00:44,160 --> 00:00:46,530
So if we accept the offer, the game is over.

14
00:00:46,650 --> 00:00:52,400
We walk away with 31 credits and if we decline it, then we select four more cases.

15
00:00:52,410 --> 00:00:54,570
So how about we decline, not try to play through?

16
00:00:54,570 --> 00:00:56,880
It doesn't look like I'm doing great at the job.

17
00:00:56,880 --> 00:00:58,770
And that was even worse.

18
00:00:59,160 --> 00:01:00,630
And that's the fun of the game.

19
00:01:00,930 --> 00:01:02,190
It can go either way.

20
00:01:02,220 --> 00:01:03,290
It's all random.

21
00:01:03,320 --> 00:01:05,640
It's all based on the player's interaction.

22
00:01:05,670 --> 00:01:10,260
So now we've got another offer of eight credits or we can select three more cases.

23
00:01:10,380 --> 00:01:15,420
How about we decline it and we try to go for this and see what we can do?

24
00:01:15,420 --> 00:01:18,750
So the great job and too bad I got rid of another big one.

25
00:01:18,930 --> 00:01:20,670
So now my offer is down to seven.

26
00:01:20,670 --> 00:01:21,630
What am I going to do?

27
00:01:21,630 --> 00:01:26,130
Going to continue to play through, hold on and try to get the best deal possible.

28
00:01:26,340 --> 00:01:29,730
So offer number four or we can select one more case.

29
00:01:29,760 --> 00:01:36,150
So how about we select one more case got offer number five, which is the last offer.

30
00:01:36,270 --> 00:01:39,090
So if I accept it, then I get three credits.

31
00:01:39,120 --> 00:01:42,120
If I decline it, I walk away with whatever was in my case.

32
00:01:42,360 --> 00:01:46,170
And either way I get to determine whether I made a good deal or a bad deal.

33
00:01:46,290 --> 00:01:47,400
So it's decline it.

34
00:01:47,400 --> 00:01:50,820
My case had five, so the last one was a good deal.

35
00:01:50,970 --> 00:01:55,800
But hanging on and it losing all of those larger offers wasn't so much of a great deal.

36
00:01:56,100 --> 00:01:57,750
So that's the essence of the game.

37
00:01:57,750 --> 00:02:00,210
And then of course, you can play through it over and over again.

38
00:02:00,300 --> 00:02:03,060
We'll also show you what was within the hidden cases.

39
00:02:03,270 --> 00:02:09,990
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

40
00:02:09,990 --> 00:02:15,180
to show me all of the values that were hidden that I didn't select, but also tell me what I had within

41
00:02:15,180 --> 00:02:16,440
my case.

42
00:02:16,440 --> 00:02:19,320
So this game, of course, predominantly JavaScript.

43
00:02:19,320 --> 00:02:24,180
And that's what we're going to focus the upcoming the lessons, because we do want to focus on JavaScript.

44
00:02:24,390 --> 00:02:30,480
So there is some HTML and CSFs, which I am going to go through rather quickly, and you can skip through

45
00:02:30,480 --> 00:02:32,460
this and customize it as needed.

46
00:02:32,610 --> 00:02:37,710
And then, of course, JavaScript is at the very heart of what we're going to be doing and the upcoming

47
00:02:37,710 --> 00:02:38,130
lessons.

48
00:02:38,310 --> 00:02:44,160
If you have any questions or comments about the code, please let me know within the Q&amp;A section of

49
00:02:44,160 --> 00:02:44,700
the course.

50
00:02:44,700 --> 00:02:46,150
I'm always happy to hear from you.

51
00:02:46,150 --> 00:02:52,170
While source code is included and one of the best ways to learn coding is to try it for yourself, I'm

52
00:02:52,170 --> 00:02:56,760
going to encourage you to keep trying and to try to build your own version of the game.

53
00:02:57,060 --> 00:03:03,690
But also the objective of this course is to get familiar with working with JavaScript and get comfortable

54
00:03:03,690 --> 00:03:05,190
with what JavaScript can do.

55
00:03:05,310 --> 00:03:11,220
So a lot of the stuff that I'm presenting, it's meant US practice for JavaScript in order so that you

56
00:03:11,220 --> 00:03:13,530
can reuse it in your own projects.

57
00:03:13,650 --> 00:03:18,810
And also, please feel free to extend on this project, customize the game to your liking.

58
00:03:19,050 --> 00:03:20,580
So I know you're excited to get started.

59
00:03:20,580 --> 00:03:25,320
So let's dive right in and start building out some amazing things with JavaScript.
