So inside of this Mefford I can just type in between restart game that said visibility view that's invisible.
OK.
Now I can actually create another my fed private voit and this time the name of my method is make our
AMG dice visible OK.
And here inside of the Smurfette I can just type in our UMG dice that set this ability
view that visible I can create another in my first private Voyt match between restart
visible and inside of this perfect I can just typing in between.
Restart.
Jane Dot said visibility view that visible.
OK so hopefully that makes sense.
And now let's actually go back inside this uncreate Mefford.
And now let's actually typing in some other codes.
Here are some lines of code here and here I can just type in make between restarts invisible and I can
actually type in here TXI the game status that said text set text to double quotes.
I want to actually empty the value of this to eight game status when my Actually application is actually
started for the first time he makes the game calculations take such that it takes to double quotes.
OK.
So hopefully that makes sense.
And let's actually run our project here and see what happens on here.
Use the same device for future launches and click on OK.
OK.
As you can see here now our application is actually running on this emulator here and we can only see
this image view this image at the center of this screen here.
And as you can see here inside of this uncreate Mefford I said that's a major B.T. and restart invisible.
So as you can see we cannot see that BT and restart here.
And as you can see I specified that THC games that is that said text to double codes as you can see
we cannot see the value of these TXI the game status and the XTi game calculations as you can see the
calculations here we cannot see those values here because we actually assign the value empty to those
values inside of these uncreate method.
And we can only see it is M.H. view here this image.
So hopefully that makes sense.
And let's go back inside the main activity that up fight here and inside of this are uncreate nefarious.
Let's actually continue adding some more coats.
OK everyone now here that's actually referred to the name of this I am Gittis image that sits on Khaliq
listener new view that unclick listener.
OK.
So as you can see here I am making this image this image view.
So let's actually click on this clear cashier and here I am actually making this image.
You are listening to the clique's that the use or make on this image.
OK.
OK so now let's actually go back and say this main activity that you a fight here and inside this unclick
method it's actually putting some more quotes.
OK.
So first of all it's actually create an if statement here if game status.
So remember we created this game status here in main activity class and in line 55.
OK.
These games that is valuable is actually of type status and this status is actually an arm.
OK.
And if you only accept these values.
Ok.
Not started yet.
Proceed one last.
And here we created this variable and we assigned this status that not started yes value to these value.
Well OK.
So here inside these are if statement here I am saying that if game status is equal to status not started
yet and then it can actually execute these lines of code inside of these if statement.
And this means if the user has not started the game yet then it's going to actually execute these lines
of code inside of this if statement.
OK.
So if the user click on this image here and the user has not started the game yet.
So now we're going to actually execute these lines of code inside of these if statements.
OK.
First of all let's actually create an integer variable int dice some assignment operator typing the
name of AMFA that we haven't actually created yet.
OK let's roll the dice and we haven't actually created this method yet.
So we need to create this method as it can't see the color of this if it is red.
And if I hover my mouse pointer over this red area it says cannot resolve Mefford.
Let's roll the dice.
We haven't declared this left yet.
So here let's actually create Smurfette privates.
So as you can see here the access modifier of RMF it is a private int and the return type of RMF it
is integer and the name of RMF it is.
Let's roll the dice.
So as you can see here I didn't write this.
It named right here.
Let's roll the dice.
I can actually put my own statements inside of the Smurfette.
OK.
So let's actually it's a random number and rant type 1 assignment operator 1 plus secure random numbers
dot next.
Int and an inside Apprentice's.
I can actually put the value 6 here.
So as you can see here this piece of code here is going to actually generate a value of between number
1 and number 6.
OK.
So if we if we didn't actually put this number of one plus here it's going to actually generate a value
or a random value or random number between numbers 0 and number 6.
But if I put the value number one plus this piece of code is going to generate a random number between
number 1 and number 6.
OK.
So let's actually create another integer variable into rand die two assignment operator one plus secure
random numbers that next int 6.
OK.
And some assignments operator rant die one plus Rand die two.
OK so now let's actually refers to the name of this TXI the calculations that said text as three in
that format.
OK.
All it takes the calculations value plus to double quotes you wrold percent the plus person the assignment
operator person the percent end and this person in here is going to actually create a new line character
OK here as you can see this you're familiar with this piece of code.
This is actually a static effect inside of this string class.
And I told you about this concept in the previous tutorial.
And this piece of code is going to generate a string value.
It's going to return as a string value.
And here we are saying that all the calculations value.
This is a value bet that we actually created here in line for free.
And we're saying this empty value here to this variable.
Plus you rolled a person D-plus percent the person the assignment operator person did.
So now we need to actually specify the arguments that are that are actually related to these are specifiers
to these format specifiers here.
So for the person you need to actually put an argument of type integer.
OK so Rand dog one.
OK.
Come on Rand.
Day.
That is actually related to this person the camera.
And then we need to actually again put in an argument of type integer that is actually related to these
specifier here.
OK.
So some.
So hopefully that makes sense.
And then we need to actually turn the value of these really some value.
Some.
And as you can see here.
So as you can see the name of this Meffert is not right.
Let's roll the dice.
OK.
So now as you can see here are inside of this statement.
As you can see inside of this image I introduced that Stokley listener and inside of his uncle Mefford
here we created an if statement.
And inside of this statement I created an integer number or an integer variable called dice sum.
And here we are assigning are the returned value of this method.
OK.
So now let's actually continue adding some more lines of code here.