Hey, congratulations on making it this far into the course and within the project.
And this is the part of the project where you can share the project with your friends, play through
it, and just make sure that everything is working as expected.
And there is one thing that I did want to update, and I did notice that this value for the dealer.
So even when we re deal, that value doesn't update.
So if we do have a hidden card, it's showing the actual value there.
So it's not updating.
It's not hiding it anymore.
So we do want to make sure that we take care of that, that we've got the dealer score and update that
tax content.
And you'll find that there's small things that you do need to take care of and deal with in this scenario.
So we'll see that there.
We've got to Asterix while it's hidden and then we'll just do a standard deal again.
And Asterix against the not showing those values.
It's not allowing us to hit.
So this is a problem as well that we need to be able to have the option to hit or to stand.
So just make sure that that is working properly.
So in this case, we've got 20.
So let's go back and readjust the ranks.
I just got a comment that one out.
In case we do need to have additional testing.
So refresh and let's open it up on the large screen.
Hit the deal.
We'll just do stand because we didn't get anything.
And this case will bat 50 bat and deal.
So have the New Deal coming through and we'll just stand.
So a player busted.
So that should actually increase my player cash and notices.
Well, that it isn't increasing.
So we need to update the score for the player cash.
So that needs to be done.
Whenever we're updating any of the values.
Let's try that one more time.
So we've got the deal here.
Stand this time we're going to bat 50.
Deal.
Take or stand or stand.
So the dealer score 19.
Dealer wins with 19.
So we don't have any player cash because we're betting 50 again.
See what happens.
Deal.
Stand.
And the dealer scores 20.
So the dealer actually won.
We have no more cash left.
So that one hundred on this.
So the dealer busts.
So they gave us player cash.
So the player cash should be updating to be 200.
And right now, as we see it, it's only one hundred.
So it didn't actually update the player cash, which it should have done.
Let's take a quick look and see what we're missing with the player cash value.
And that's because it's subtracting off of the player cash.
So how about we set a value for the player cash?
And I'll just comment out the update of the cash and we'll bet 50.
Deal.
Stand player.
The dealer busts.
So we end up with 150.
So we've got our initial 50 back plus we earned 50 on that.
So that's working properly.
So again, there is a little bit of play through that you need to make in order, make sure that everything
is functioning as expected.
And once you've played it through a bunch of times, then you should be able to tell if things are working
as you want.
And if they're not, then make the tweaks, adjustments within the functions as needed.
So coming up next, we'll do a final code review.