Enums: Rock, Paper, Scissors

  1. create two separate enums. one called HandShape that has cases of rock, paper, and scissors. The other called MatchResult that has match results win, lose, draw.
  2. Create a function called match that takes two handShapes as parameters and returns a matchResult. Cover all cases.
  3. Print out results of several matches.

Black Diamond

Create a new project for a Rock, Paper, Scissors app (you've had this black diamond before, but now with a different twist). This will be a single-view app with three buttons. One will say Rock, one will say Paper, one will say Scissors. When the user taps on a button, you will randomly determine what the computer plays, and announce to the user whether the user wins, loses, or ties. You must incorporate the enums and function you made above. Once this is completed and working, find a way to simulate the computer getting better over time (i.e. they get better at guessing your move after playing a few games).