Posts

Showing posts with the label local coding

Ray Wenderlich Course Part 7 (up to lesson 62)

First of all, I DID IT! I managed to use if statements to program in a maximum with five rounds and the total score being shown. Wasn't easy but I did it! func nextRound() {                          score += points             roundNumber += 1         }                  if difference == 0 && roundNumber < 5 {                          title = "Perfect!"             points += 100             nextRound ()                      } else if difference < 5 && roundNumber < 5 {             title = "Very close - great try!"             ...