Welcome, ladies and gentlemen, today we are going to do is we are going to discuss what we are going
to build in next couple of lectures and that will be this dice game.
So we have two players for this game.
We're going to build it from scratch, but only the genius board.
We're not going to do the actual styling.
So I'm going to give you the actual styling, the Sasko, the Cisco, whatever you want.
You can just extend the change if something you don't like and but that's up to you.
You need to have a little bit knowledge of success, and that's pretty much it.
No, this is the game that we are going to start and it would look like this.
So everything is on.
You can see the player one state is on and the player to state is green.
And that means we have two winners.
That's not possible.
Right?
This is how are we going to start our project?
But this doesn't mean that the project will look like this after we finish everything.
This will be the project.
This will be the end result.
So I can roll the dice.
And the player one is actually be the first one that will roll the dice.
So we're going to have five, which he wrote.
Five will be the result in there.
We're going to have five cubes.
So we're going to build this block here and a half block for the other player.
Right.
So next time when you roll the dice, it's actually going to be for the other person, the other player,
which again, he scored for some coincidence.
Five, no, this game was originally named run two hundred.
But because it took me like a bigger space here, I didn't I don't want to compromise my space so you
can change it if you want.
I just change it to run to twenty.
Right.
That's why it's called front to twenty here and here.
Run to hundred.
Now that it's not going to affect any way of the game is just going to decrease the amount of rolling
right now.
The next time when you roll the dice, the blier and before was five plus four, it's going to give
us nine and we have nine blocks here.
Now, when I wrote the Game Change check on the state, the state is also changing.
So here, old one is actually six and this guy rolled six and fifteen.
The other guy eleven, nineteen.
And this guy rules six again.
So give me the final result of twenty five.
So if I hit again one that will be the winner.
Right.
And I have restart button so we can restart the game because that game was finished.
And I didn't tell you that when we, when a player wins this here is not visible.
So we're going to play around with the visibility.
So everything we learn in the dom, everything we learn with the to do list project, that was also
very good.
We are going to do it a little bit here and you will learn much more things how you can do it.
Right.
And I hope that you can enjoy this game.
I hope you're going to like it because this game can be changed to something else.
If you are curious to learn more so you can play around with some values, you can play around some
success and you can change it according to your needs.
Right.
Maybe you can develop another logic for doubling.
So this is a run to twenty or two hundred depends.
So I just want to show you that this player can win sometimes he has a bad luck today.
Here he is.
He's a winner now and that's pretty much it.
This is what the game will look through.
I have two buttons here.
These are actual roll the dice and we start.
Right.
So take care and I will see you in the next one, please.
Like, share squat whenever you're going to do.
Give me a feedback about this one and I will just start explaining from scratch from the next election.
So see you then.
Enjoy the rest of the day.