This is the combination lock guessing game S. Where are we going to be building out another game from
scratch?
And this is the combination lock, so we presented with six digits and you have to guess what the secret
digits are.
And this is all generated via JavaScript and of course, using my random behind the scenes in order
to get a random number.
There's also hints that are going to be provided to the player.
So whether they've guessed too low or whether they've guessed too high and then green, if they've guessed
it correctly.
So there's feedback that comes back to the player as well as some tracking.
And let's let's check this one out.
Yeah.
And by the by the way, this is all a JavaScript generator with JavaScript.
The whole visuals get generated with JavaScript.
There's no HTML.
All of this is generated and created via JavaScript.
So we've got a series of digits and we need to guess what they are.
So we can enter in a set of digits, press the check combo to see how our guess does.
And we see that we've got blue.
So blue means that we are we need to go higher and red means that we need to go lower.
So interesting enough, let's try another combination.
So now we've got one.
Correct.
And it looks like we have to go even lower and even lower again.
So what an odd, interesting number of blue has to go higher and until we get the values so some lower
and lower.
So I'm not doing too great at the scheme and I'm sure you can do it way better.
See that it took us ten guesses to solve the combination and we can restart the game and try it again,
see if we can beat our guess count.