Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



3 Commits

Repository files navigation


We will create a basic prototype of game known as concentration. Where players (usually young children) are tasked with matching every card to its identical complement in as few flips as possible.

Learning objectives for this week are as follows:

  • Modifying basic attributes in Xcode
  • Accessing documentation through Xcode
    • “Option click” is your friend
  • Wiring event handlers
  • Creating Swift functions
    • External vs internal parameter name
  • Optionals

Don’t worry about a achieving total functionality. We will revisit this project next week and consider more elegant techniques using Model-View-Controller (MVC).

To Do:

  1. Clone the repository for this application
  2. Create, and switch to a new Git branch using Git
  3. Change the background color
  4. Add buttons to the story board
  5. Change the background color of the buttons
  6. Change the text of the button to an emoji
    1. Hint: Edit -> Emoji & Symbols
  7. Wire event handlers to these buttons. These event handlers are responsible for “flipping” the card when pressed.
    1. Hint: “control drag”
  8. Create a label to store the number of times a card has been flipped.
  9. Consider how we could design functionality for “matching” cards together.
  10. Consider how we could design the functionality for the whole card game using multiple classes, as opposed to having everything in the ViewController.

The full course materials are available courtesy


No description, website, or topics provided.






No releases published


No packages published