I am trying to program a Black Jack app. There are three CPU players (with the dealer). I have written a separate class “Cpu” and in this class the cpus get their numbers (cards, I have no images yet) and also they become a true statement if they are <= 21 and false if above 21. I did this because I wanted to exclude the “false” players, so that I can neglect them when I am comparing the numbers to see who wins against who. As you can imagine there are dozens of different situations and making so many if else statement would be crazy.
What is the best solution for my problem?
Furthermore I get these yellow errors and I don’t know how to get them away.