1
00:00:00,930 --> 00:00:07,110
OK now let's actually refers to the name of this old text the calculations value valuable as you can

2
00:00:07,110 --> 00:00:13,350
see this variable is of type String and we created this variable in line for free so we can actually

3
00:00:13,350 --> 00:00:18,900
refer to the name of this variable because this variable is created inside the main activity class so

4
00:00:19,000 --> 00:00:24,550
I can actually refer to the name of that variable here inside of this if statement inside of this uncle

5
00:00:24,700 --> 00:00:25,050
Meffert.

6
00:00:25,070 --> 00:00:25,770
OK.

7
00:00:25,950 --> 00:00:28,590
So all itx the child relations value.

8
00:00:28,970 --> 00:00:40,600
OK assignments operator takes the assignment operator takes the calculations that it takes that to think

9
00:00:41,570 --> 00:00:42,460
OK.

10
00:00:42,990 --> 00:00:49,500
So here I am actually assigning the value of these 3 x the calculations takes view as you can see this

11
00:00:49,500 --> 00:00:51,860
is our RTX the calculations here.

12
00:00:51,860 --> 00:00:57,880
This takes you and I am actually assigning the value of that takes you to this variable.

13
00:00:57,930 --> 00:01:00,680
Old RTX the calculation has value.

14
00:01:00,960 --> 00:01:06,920
And we need to actually convert this value to a string value in order to assign this value to this stream.

15
00:01:06,930 --> 00:01:07,350
Ready.

16
00:01:07,430 --> 00:01:08,300
OK.

17
00:01:08,640 --> 00:01:14,250
So now it's actually filled with the name of this point so valuable that I actually create it in line

18
00:01:14,400 --> 00:01:15,700
36 here.

19
00:01:15,750 --> 00:01:18,180
Data Type of this variable is integer.

20
00:01:18,180 --> 00:01:21,790
And I didn't assign any value to this value yet.

21
00:01:21,840 --> 00:01:22,350
OK.

22
00:01:22,500 --> 00:01:26,600
So here I want to assign a value to these valuable points.

23
00:01:26,740 --> 00:01:28,850
Assignment operator zero.

24
00:01:28,870 --> 00:01:29,320
OK.

25
00:01:29,370 --> 00:01:32,000
So now let's actually create a switch statement.

26
00:01:32,040 --> 00:01:34,740
So each dice sum.

27
00:01:34,970 --> 00:01:39,140
So it's going to actually switch between the values of these dice somebody.

28
00:01:39,210 --> 00:01:39,700
OK.

29
00:01:39,930 --> 00:01:46,900
So now we can actually create here some case statements case 7.

30
00:01:47,910 --> 00:01:48,480
OK.

31
00:01:48,660 --> 00:01:53,220
As you can see here this 7 is actually a constant that we created here.

32
00:01:53,220 --> 00:01:57,300
We created some constants and we assigned some values to these constants.

33
00:01:57,360 --> 00:02:07,110
Ok for example Number two for this tiger class number three for these 3 7 7 11 11 and number 12 for

34
00:02:07,110 --> 00:02:08,430
this Panter constant.

35
00:02:08,430 --> 00:02:08,930
OK.

36
00:02:09,210 --> 00:02:13,160
So here I am referring to the name of this constant case 7.

37
00:02:13,310 --> 00:02:19,250
OK and this means that if the value of these dice some valuable is actually 7.

38
00:02:19,290 --> 00:02:23,650
So this actually creates another case statement case 11.

39
00:02:24,780 --> 00:02:32,200
And here again I am saying that if the value of these dice some valuable is 11.

40
00:02:32,220 --> 00:02:35,610
This means if the value of this dice so valuable is 11.

41
00:02:35,670 --> 00:02:41,310
OK so in case the value of this is some value bet is seven or 11.

42
00:02:41,340 --> 00:02:42,260
So now.

43
00:02:42,450 --> 00:02:47,600
So now I can actually put some lines of code here in case these values are true.

44
00:02:47,610 --> 00:02:48,100
OK.

45
00:02:48,210 --> 00:02:55,270
In case the value of some valuable is 7 or 11 game status is equal to status.

46
00:02:55,290 --> 00:02:57,380
Got one.

47
00:02:58,320 --> 00:02:59,410
OK.

48
00:02:59,670 --> 00:03:07,110
So in case the value of these dice some variable is seven or 11 the value of this game status variable

49
00:03:07,110 --> 00:03:09,830
is status that one OK.

50
00:03:09,930 --> 00:03:17,670
And I can just type into the game status that set text and in say The Apprentice's I can put in.

51
00:03:17,710 --> 00:03:19,720
You win.

52
00:03:20,130 --> 00:03:28,100
And here I can just type in make I dice invisible in case the user wins the game.

53
00:03:28,290 --> 00:03:31,490
I don't want that image to be visible.

54
00:03:31,860 --> 00:03:36,000
So I just want to make this I am sure dice invisible.

55
00:03:36,330 --> 00:03:45,780
So I can't just refer to the name of that Smurfette make between pre-start visible.

56
00:03:46,310 --> 00:03:46,730
OK.

57
00:03:46,750 --> 00:03:51,730
But you can see here in uncreate method I made that PTEN restart invisible.

58
00:03:51,810 --> 00:03:57,960
So in case the user wins the game you want that arrestors game to be visible so that the user can click

59
00:03:57,960 --> 00:03:59,420
on it and restart the game.

60
00:03:59,470 --> 00:04:02,210
OK and play.

61
00:04:02,830 --> 00:04:03,300
OK.

62
00:04:03,370 --> 00:04:04,470
So really nice.

63
00:04:04,480 --> 00:04:07,570
Let's actually continue adding some more cases.

64
00:04:07,630 --> 00:04:11,000
Case tiger.

65
00:04:11,390 --> 00:04:19,320
Plus if the value of this stay some variable is equal to the value of this target class constants.

66
00:04:19,330 --> 00:04:25,760
So this type of class concern is has the value to Hiroki number to be assigned to number numbers to

67
00:04:25,830 --> 00:04:26,810
this variable.

68
00:04:26,980 --> 00:04:31,180
If the value of some value but is actually true.

69
00:04:31,270 --> 00:04:35,940
Again this actually creates another case statement here Case 3.

70
00:04:36,100 --> 00:04:39,680
I am saying that if the value of this day somebody bet is free.

71
00:04:39,870 --> 00:04:40,080
OK.

72
00:04:40,090 --> 00:04:44,910
As you can see these are constant three has the value of the median.

73
00:04:44,920 --> 00:04:45,500
OK.

74
00:04:45,670 --> 00:04:52,550
I am referring to the name of that constant chase punter as you can see this punter constant has the

75
00:04:52,550 --> 00:04:53,840
value 12.

76
00:04:53,950 --> 00:04:59,890
And here I am saying that if the value of the stock so valuable is equal to number 12 if the value of

77
00:04:59,890 --> 00:05:08,110
this day some value bet is equal to the value of this punter up constant then let's actually put in

78
00:05:08,110 --> 00:05:09,480
some more calls here.

79
00:05:09,510 --> 00:05:22,000
Game status status that last Ok DX the game status that said text you last

80
00:05:25,110 --> 00:05:25,760
OK.

81
00:05:26,340 --> 00:05:30,000
And here I want to make this up.

82
00:05:30,210 --> 00:05:32,220
I m g dice invisible.

83
00:05:32,230 --> 00:05:39,420
May I is invisible and I want to actually make that PTEN restart visible.

84
00:05:39,430 --> 00:05:43,620
OK so that the user can click on that button and restart the game.

85
00:05:43,860 --> 00:05:44,380
OK.

86
00:05:44,520 --> 00:05:47,580
And here I need to put the brakes statement OK.

87
00:05:48,120 --> 00:05:52,910
So let me explain again in case the value of this is some variable.

88
00:05:53,090 --> 00:05:53,720
OK.

89
00:05:53,820 --> 00:05:57,880
Is equal to the value of one of these cases.

90
00:05:57,900 --> 00:06:04,040
For example Tiger class 3 or punter then it's going to execute these lines of code here.

91
00:06:04,050 --> 00:06:04,670
OK.

92
00:06:04,710 --> 00:06:06,910
Game status is equal to status.

93
00:06:06,910 --> 00:06:13,860
At last the user loses the game and it's going to actually put the stakes in place of this TXI the game's

94
00:06:13,860 --> 00:06:15,760
status and then it's going to actually make.

95
00:06:15,780 --> 00:06:17,450
I enjoy dice invisible.

96
00:06:17,580 --> 00:06:20,900
And then it's gonna make PTEN restart visible.

97
00:06:20,970 --> 00:06:21,280
OK.

98
00:06:21,300 --> 00:06:26,830
And then it's going to break out of the switch statement and put in some more case the statements here.

99
00:06:26,830 --> 00:06:35,790
Case in case the value of this stay some value bet is four or in case the value of this variable is

100
00:06:36,180 --> 00:06:45,000
five or is or the value of the stay so valuable is six.

101
00:06:45,570 --> 00:06:53,490
Or in case the value of this stay some variable is 8 or in case the value of this day somebody bet is

102
00:06:54,150 --> 00:06:58,280
nine or in case the value of the stay so valuable is 10.

103
00:06:58,380 --> 00:07:03,770
So now it's going to actually execute these lines of code that we're going right in here.

104
00:07:03,780 --> 00:07:04,320
OK.

105
00:07:04,560 --> 00:07:10,900
Game status is equal to status dot proceed.

106
00:07:10,920 --> 00:07:14,910
So it's going to let the user continue playing the game.

107
00:07:14,970 --> 00:07:15,410
OK.

108
00:07:15,480 --> 00:07:22,740
And it's actually a sign of the points that the user reen so points is equal to twice some.

109
00:07:22,740 --> 00:07:27,440
So now you are assigning the value of this though some valuable to these points.

110
00:07:27,450 --> 00:07:27,720
Right.

111
00:07:27,720 --> 00:07:27,970
You bet.

112
00:07:27,990 --> 00:07:28,460
OK.

113
00:07:28,620 --> 00:07:32,330
And that value is at the points of the user.

114
00:07:32,460 --> 00:07:33,020
OK.

115
00:07:33,270 --> 00:07:48,360
I can just type anti-X the calculations that said text all the calculations value plus your point is

116
00:07:48,660 --> 00:07:56,270
your point is plus points plus a new line character.

117
00:07:56,280 --> 00:07:56,690
OK.

118
00:07:56,760 --> 00:08:03,110
So in order to create a new character we need to actually put a bite for Slash in here.

119
00:08:03,240 --> 00:08:04,260
OK.

120
00:08:04,860 --> 00:08:11,430
And then I need to actually refer to the name of this all takes the calculations value assignment operator

121
00:08:12,300 --> 00:08:20,830
and then instead of double quotes I can just type in your point is plus points.

122
00:08:21,620 --> 00:08:22,610
OK.

123
00:08:23,400 --> 00:08:32,910
And then I can just put in a new line character again here backward slash and we can also assign a value

124
00:08:32,910 --> 00:08:37,840
to the text the game status the next to games that has that set text.

125
00:08:38,940 --> 00:08:46,770
And then inside the apprentice's I can just put into double quotes and I can just typing continue the

126
00:08:46,770 --> 00:08:47,290
game.

127
00:08:47,430 --> 00:08:50,070
And then I can actually break out of this switch statements.

128
00:08:50,070 --> 00:08:58,530
OK so now let's actually put a return statement here and I'll talk more about this written statement

129
00:08:59,130 --> 00:08:59,850
in a moment.

130
00:08:59,970 --> 00:09:04,540
For now let's let me actually talk about these lines of code here.

131
00:09:04,800 --> 00:09:12,180
And here we are saying that in case the value of this is so valuable is four five six eight nine or

132
00:09:12,180 --> 00:09:15,530
ten then execute these lines of code here.

133
00:09:15,740 --> 00:09:16,850
OK.

134
00:09:17,280 --> 00:09:21,150
The value of these games that is where the bet is going to be status that proceed.

135
00:09:21,150 --> 00:09:23,380
So the user can continue the game.

136
00:09:23,850 --> 00:09:29,510
I am actually assigning the value of this dice so valuable as the points of the user.

137
00:09:29,520 --> 00:09:36,210
So I am assigning this value to these points variable and in in place of these tweaks the calculations

138
00:09:36,210 --> 00:09:37,190
takes you.

139
00:09:37,220 --> 00:09:40,590
I am putting this text all the child relations value.

140
00:09:40,590 --> 00:09:45,130
So remember that we created this variable here in line for free.

141
00:09:45,260 --> 00:09:45,780
OK.

142
00:09:45,960 --> 00:09:52,410
Here as you can see I assigned this empty value to add value but in another method in our job file here

143
00:09:52,710 --> 00:09:55,990
as you can see in India Smurfette Let's roll the dice.

144
00:09:56,100 --> 00:09:58,660
I actually referred to the name of this variable.

145
00:09:58,680 --> 00:10:00,830
All the calculations Why do you.

146
00:10:00,880 --> 00:10:02,250
OK remember this.

147
00:10:02,280 --> 00:10:02,860
OK.

148
00:10:03,090 --> 00:10:09,510
And then again inside of these are on unclear Mefford I am saying that the calculations that get takes

149
00:10:09,630 --> 00:10:15,390
that 2st is going to actually assign whatever value is inside of these calculations.

150
00:10:15,630 --> 00:10:20,880
And then when I try to convert that value to a string value and then it's going to assign that value

151
00:10:20,880 --> 00:10:24,070
to these all the calculations value of value.

152
00:10:24,090 --> 00:10:24,560
OK.

