OK now let's actually refers to the name of this old text the calculations value valuable as you can
see this variable is of type String and we created this variable in line for free so we can actually
refer to the name of this variable because this variable is created inside the main activity class so
I can actually refer to the name of that variable here inside of this if statement inside of this uncle
Meffert.
OK.
So all itx the child relations value.
OK assignments operator takes the assignment operator takes the calculations that it takes that to think
OK.
So here I am actually assigning the value of these 3 x the calculations takes view as you can see this
is our RTX the calculations here.
This takes you and I am actually assigning the value of that takes you to this variable.
Old RTX the calculation has value.
And we need to actually convert this value to a string value in order to assign this value to this stream.
Ready.
OK.
So now it's actually filled with the name of this point so valuable that I actually create it in line
36 here.
Data Type of this variable is integer.
And I didn't assign any value to this value yet.
OK.
So here I want to assign a value to these valuable points.
Assignment operator zero.
OK.
So now let's actually create a switch statement.
So each dice sum.
So it's going to actually switch between the values of these dice somebody.
OK.
So now we can actually create here some case statements case 7.
OK.
As you can see here this 7 is actually a constant that we created here.
We created some constants and we assigned some values to these constants.
Ok for example Number two for this tiger class number three for these 3 7 7 11 11 and number 12 for
this Panter constant.
OK.
So here I am referring to the name of this constant case 7.
OK and this means that if the value of these dice some valuable is actually 7.
So this actually creates another case statement case 11.
And here again I am saying that if the value of these dice some valuable is 11.
This means if the value of this dice so valuable is 11.
OK so in case the value of this is some value bet is seven or 11.
So now.
So now I can actually put some lines of code here in case these values are true.
OK.
In case the value of some valuable is 7 or 11 game status is equal to status.
Got one.
OK.
So in case the value of these dice some variable is seven or 11 the value of this game status variable
is status that one OK.
And I can just type into the game status that set text and in say The Apprentice's I can put in.
You win.
And here I can just type in make I dice invisible in case the user wins the game.
I don't want that image to be visible.
So I just want to make this I am sure dice invisible.
So I can't just refer to the name of that Smurfette make between pre-start visible.
OK.
But you can see here in uncreate method I made that PTEN restart invisible.
So in case the user wins the game you want that arrestors game to be visible so that the user can click
on it and restart the game.
OK and play.
OK.
So really nice.
Let's actually continue adding some more cases.
Case tiger.
Plus if the value of this stay some variable is equal to the value of this target class constants.
So this type of class concern is has the value to Hiroki number to be assigned to number numbers to
this variable.
If the value of some value but is actually true.
Again this actually creates another case statement here Case 3.
I am saying that if the value of this day somebody bet is free.
OK.
As you can see these are constant three has the value of the median.
OK.
I am referring to the name of that constant chase punter as you can see this punter constant has the
value 12.
And here I am saying that if the value of the stock so valuable is equal to number 12 if the value of
this day some value bet is equal to the value of this punter up constant then let's actually put in
some more calls here.
Game status status that last Ok DX the game status that said text you last
OK.
And here I want to make this up.
I m g dice invisible.
May I is invisible and I want to actually make that PTEN restart visible.
OK so that the user can click on that button and restart the game.
OK.
And here I need to put the brakes statement OK.
So let me explain again in case the value of this is some variable.
OK.
Is equal to the value of one of these cases.
For example Tiger class 3 or punter then it's going to execute these lines of code here.
OK.
Game status is equal to status.
At last the user loses the game and it's going to actually put the stakes in place of this TXI the game's
status and then it's going to actually make.
I enjoy dice invisible.
And then it's gonna make PTEN restart visible.
OK.
And then it's going to break out of the switch statement and put in some more case the statements here.
Case in case the value of this stay some value bet is four or in case the value of this variable is
five or is or the value of the stay so valuable is six.
Or in case the value of this stay some variable is 8 or in case the value of this day somebody bet is
nine or in case the value of the stay so valuable is 10.
So now it's going to actually execute these lines of code that we're going right in here.
OK.
Game status is equal to status dot proceed.
So it's going to let the user continue playing the game.
OK.
And it's actually a sign of the points that the user reen so points is equal to twice some.
So now you are assigning the value of this though some valuable to these points.
Right.
You bet.
OK.
And that value is at the points of the user.
OK.
I can just type anti-X the calculations that said text all the calculations value plus your point is
your point is plus points plus a new line character.
OK.
So in order to create a new character we need to actually put a bite for Slash in here.
OK.
And then I need to actually refer to the name of this all takes the calculations value assignment operator
and then instead of double quotes I can just type in your point is plus points.
OK.
And then I can just put in a new line character again here backward slash and we can also assign a value
to the text the game status the next to games that has that set text.
And then inside the apprentice's I can just put into double quotes and I can just typing continue the
game.
And then I can actually break out of this switch statements.
OK so now let's actually put a return statement here and I'll talk more about this written statement
in a moment.
For now let's let me actually talk about these lines of code here.
And here we are saying that in case the value of this is so valuable is four five six eight nine or
ten then execute these lines of code here.
OK.
The value of these games that is where the bet is going to be status that proceed.
So the user can continue the game.
I am actually assigning the value of this dice so valuable as the points of the user.
So I am assigning this value to these points variable and in in place of these tweaks the calculations
takes you.
I am putting this text all the child relations value.
So remember that we created this variable here in line for free.
OK.
Here as you can see I assigned this empty value to add value but in another method in our job file here
as you can see in India Smurfette Let's roll the dice.
I actually referred to the name of this variable.
All the calculations Why do you.
OK remember this.
OK.
And then again inside of these are on unclear Mefford I am saying that the calculations that get takes
that 2st is going to actually assign whatever value is inside of these calculations.
And then when I try to convert that value to a string value and then it's going to assign that value
to these all the calculations value of value.
OK.