I need to construct code which will decide when dealer should ‘hit’ or when to ‘stay’ in black jack game.
I’m not sure how to get the grip of a dealer taking a bit educated guess whether to draw another card or stay with original cards etc.
I don’t want to hard code anything.
Any ideas?
This sounds more like a question about the rules of blackjack than a programming question. Rules of the house is that the dealer has to keep hitting until it reaches 17 or greater. That can be hard coded as its a rule of the game.