I finished the full tutorial, and after a long time of trying to fix an issue with the code, the app works! It’s a lot simpler then I thought it would be, because the UI Kit takes care of all the code behind displaying images and randomization, and you just need to write out a few words.
It went through stages. Last update, it was sort of empty, just a template to fill in. Now, upon pressing the deal button, it displays two cards at random, and tallies the score based on the assigned number value of the cards (ace being high). The score doesn’t change at all for ties.
I’ve done well over a hundred dealings, and the CPU seems to have a higher win rate, but I suppose that’s just luck as it is the same code behind both sides. Here are a few pictures of it working in the simulator:
I’m not sure exactly what I will try and do next, but I’m having a lot of fun with Xcode so I’m excited to play around with it more.