Get the closest number
- by user183089
Hi,
i am implementing a little Black Jack game in C# and i have the following problem calculating the player's hand value.
the problem is
Ace may have value of 1 or 11
so if the players has three cards and one Ace if the sum of the cards is <= 10 Ace will have value of 11(Sorry for who doesn't know the scope of the game is to reach 21 with…