This project is already half done, with the source code available if you need it. (Runs on Spyder IDE, On Windows)
What the project needs?
You are given four images to work with. Sample image is uploaded, please take a look first.
0. Input Image (We have 4 images to input).
1. From top-left to top-right, separate every cluster of cards into players. (ex. Player1, Player2, Player 3, Player 4, Dealer)
2. The cluster of card in the bottom is always dealer and the total count is always 21.
3. After separating the players, count each card using their rank --> 2-10, Q,J,K, are all valued as 10, A is 11.
After Point No. 3, Conditions starts:
a. If any clusters (which is the Player) total count is more than dealer (which is 21), then they are unacceptable.
b. All players with a total count of 21 or less are acceptable.
c. Among the acceptable cards, whoever has the highest card wins.
d. Print the total count of Players (Player 1, Player 2, Player 3, Player 4, Dealer)
e. Print winner.