[Solved]Write Function Matlab Twentyonehandm Represents Hand Cards 21 Game Getvalue Function Must Q37203907
Write a function in MATLAB for TwentyOneHand.m represents a handof cards in a 21 game. In the get_value function, you must firstcalculate the value of the hand of cards – the difficulty here isthat an Ace can be determined to have a value of 1 or 11 dependingon the situation, so you cannot just use the value returned fromthe Hand object’s get_value function. For example, you may want anAce to hold a value of 1 if you have the Ace and two face cards,and you may want an Ace to hold a value of 11 if you have the Aceand just one face card. A hand is soft if it uses an Ace as 11, andyou must determine if the hand is soft in the functionsoft_value.
Expert Answer
Answer to Write a function in MATLAB for TwentyOneHand.m represents a hand of cards in a 21 game. In the get_value function, you m… . . .
OR

