CS193P
CS193P copied to clipboard
[PA2 Extra] Add computer to the game
Have a “play against the iPhone” mode. Each time a set is found, start a random-length timer (you’ll have to learn how to use Timer.scheduledTimer(withTimeInterval:repeats:) { } for this which uses a closure!) after which the iPhone picks a set if the user does not pick one first. See who can get the most sets! Maybe represent the iPhone with an emoji somewhere on the screen (� while the timer is running, then maybe � a couple of seconds before the iPhone makes a turn and � if the iPhone wins or � if not)? As always, be sure to give careful thought to your MVC architecture if you tackle this one.