1
00:00:00,210 --> 00:00:05,280
Hey, congratulations on making it this far into the course, so I've got a simple section for you,

2
00:00:05,280 --> 00:00:11,250
and this is all about applying logic and making the conditions to determine and also providing output

3
00:00:11,250 --> 00:00:11,930
to the user.

4
00:00:12,150 --> 00:00:15,630
So a really simple idea here is where we've got an input field.

5
00:00:15,840 --> 00:00:17,670
We take the value from the input field.

6
00:00:18,150 --> 00:00:22,140
JavaScript behind the scenes is generating a random number from one to 10.

7
00:00:22,260 --> 00:00:25,080
And the objective is to guess that random number.

8
00:00:25,320 --> 00:00:30,390
So this is relatively simple and straightforward, but it is important to understand and to determine,

9
00:00:30,390 --> 00:00:33,320
to be able to work with the conditions and also provide feedback.

10
00:00:33,480 --> 00:00:39,780
So building out these simple type games really helps you when you comes to more complex stuff and having

11
00:00:39,780 --> 00:00:44,790
all of that game logic behind the scenes that you can add to any game that you're developing.

12
00:00:45,030 --> 00:00:45,670
So let me show you.

13
00:00:46,200 --> 00:00:48,420
So we've got an input field and we've got a button.

14
00:00:48,430 --> 00:00:52,860
So we take a guess and we click the guess and it says it was higher.

15
00:00:52,860 --> 00:00:53,910
So let's try to guess.

16
00:00:54,000 --> 00:00:55,950
And I got to correct in two guesses.

17
00:00:55,960 --> 00:00:56,300
Wow.

18
00:00:56,310 --> 00:00:57,030
Can you beat that?

19
00:00:57,450 --> 00:00:57,900
Go ahead.

20
00:00:57,900 --> 00:00:58,670
Try this one out.
