1
00:00:00,530 --> 00:00:05,020
Hey, congratulations on making it this far into the course and within the project.

2
00:00:05,590 --> 00:00:10,990
And this is the part of the project where you can share the project with your friends, play through

3
00:00:10,990 --> 00:00:14,560
it, and just make sure that everything is working as expected.

4
00:00:14,890 --> 00:00:20,200
And there is one thing that I did want to update, and I did notice that this value for the dealer.

5
00:00:20,380 --> 00:00:24,010
So even when we re deal, that value doesn't update.

6
00:00:24,220 --> 00:00:29,690
So if we do have a hidden card, it's showing the actual value there.

7
00:00:29,710 --> 00:00:30,820
So it's not updating.

8
00:00:31,090 --> 00:00:32,560
It's not hiding it anymore.

9
00:00:32,890 --> 00:00:38,710
So we do want to make sure that we take care of that, that we've got the dealer score and update that

10
00:00:38,710 --> 00:00:39,700
tax content.

11
00:00:39,910 --> 00:00:46,870
And you'll find that there's small things that you do need to take care of and deal with in this scenario.

12
00:00:47,140 --> 00:00:48,220
So we'll see that there.

13
00:00:48,310 --> 00:00:53,590
We've got to Asterix while it's hidden and then we'll just do a standard deal again.

14
00:00:54,010 --> 00:00:56,620
And Asterix against the not showing those values.

15
00:00:56,950 --> 00:00:58,930
It's not allowing us to hit.

16
00:00:59,260 --> 00:01:04,930
So this is a problem as well that we need to be able to have the option to hit or to stand.

17
00:01:05,200 --> 00:01:07,570
So just make sure that that is working properly.

18
00:01:07,870 --> 00:01:09,340
So in this case, we've got 20.

19
00:01:09,640 --> 00:01:12,370
So let's go back and readjust the ranks.

20
00:01:13,270 --> 00:01:14,920
I just got a comment that one out.

21
00:01:14,950 --> 00:01:17,290
In case we do need to have additional testing.

22
00:01:17,620 --> 00:01:20,440
So refresh and let's open it up on the large screen.

23
00:01:20,710 --> 00:01:21,670
Hit the deal.

24
00:01:21,810 --> 00:01:23,980
We'll just do stand because we didn't get anything.

25
00:01:24,370 --> 00:01:28,390
And this case will bat 50 bat and deal.

26
00:01:28,600 --> 00:01:31,630
So have the New Deal coming through and we'll just stand.

27
00:01:31,900 --> 00:01:33,010
So a player busted.

28
00:01:33,190 --> 00:01:37,090
So that should actually increase my player cash and notices.

29
00:01:37,120 --> 00:01:38,860
Well, that it isn't increasing.

30
00:01:39,130 --> 00:01:43,480
So we need to update the score for the player cash.

31
00:01:43,540 --> 00:01:44,740
So that needs to be done.

32
00:01:44,880 --> 00:01:47,560
Whenever we're updating any of the values.

33
00:01:47,650 --> 00:01:48,850
Let's try that one more time.

34
00:01:49,000 --> 00:01:50,600
So we've got the deal here.

35
00:01:50,710 --> 00:01:53,560
Stand this time we're going to bat 50.

36
00:01:53,920 --> 00:01:54,490
Deal.

37
00:01:54,940 --> 00:01:56,740
Take or stand or stand.

38
00:01:57,250 --> 00:01:59,860
So the dealer score 19.

39
00:01:59,890 --> 00:02:01,210
Dealer wins with 19.

40
00:02:01,870 --> 00:02:04,600
So we don't have any player cash because we're betting 50 again.

41
00:02:05,080 --> 00:02:05,890
See what happens.

42
00:02:06,430 --> 00:02:06,910
Deal.

43
00:02:07,000 --> 00:02:07,570
Stand.

44
00:02:08,470 --> 00:02:10,390
And the dealer scores 20.

45
00:02:10,480 --> 00:02:11,560
So the dealer actually won.

46
00:02:11,560 --> 00:02:12,820
We have no more cash left.

47
00:02:13,090 --> 00:02:14,980
So that one hundred on this.

48
00:02:15,130 --> 00:02:16,540
So the dealer busts.

49
00:02:16,900 --> 00:02:18,550
So they gave us player cash.

50
00:02:18,790 --> 00:02:22,010
So the player cash should be updating to be 200.

51
00:02:22,480 --> 00:02:25,000
And right now, as we see it, it's only one hundred.

52
00:02:25,210 --> 00:02:28,900
So it didn't actually update the player cash, which it should have done.

53
00:02:30,020 --> 00:02:35,770
Let's take a quick look and see what we're missing with the player cash value.

54
00:02:35,920 --> 00:02:39,220
And that's because it's subtracting off of the player cash.

55
00:02:39,700 --> 00:02:43,320
So how about we set a value for the player cash?

56
00:02:43,450 --> 00:02:47,180
And I'll just comment out the update of the cash and we'll bet 50.

57
00:02:47,820 --> 00:02:48,130
Deal.

58
00:02:48,770 --> 00:02:50,290
Stand player.

59
00:02:50,390 --> 00:02:51,430
The dealer busts.

60
00:02:51,730 --> 00:02:53,360
So we end up with 150.

61
00:02:53,830 --> 00:02:57,880
So we've got our initial 50 back plus we earned 50 on that.

62
00:02:58,360 --> 00:02:59,500
So that's working properly.

63
00:02:59,890 --> 00:03:04,750
So again, there is a little bit of play through that you need to make in order, make sure that everything

64
00:03:04,750 --> 00:03:06,370
is functioning as expected.

65
00:03:06,730 --> 00:03:12,340
And once you've played it through a bunch of times, then you should be able to tell if things are working

66
00:03:12,400 --> 00:03:13,090
as you want.

67
00:03:13,210 --> 00:03:17,500
And if they're not, then make the tweaks, adjustments within the functions as needed.

68
00:03:17,830 --> 00:03:19,960
So coming up next, we'll do a final code review.
