Share via


Memory game overview (HTML)

This tutorial creates a lightweight, dynamic version of the memory game commonly referred to as "Concentration." In the game, a number of cards are laid face down. The objective of the game is to turn over pairs of matching cards until all of the matching pairs have been revealed.

Sample App - Landscape

Major components of the game

This app requires the following components:

JJ129410.collapse_all(en-us,VS.110).gifThe game design

The visual design and layout will consist of the following regions:

  • A header that contains the app title and a short set of instructions

    Sample App Header

  • A panel that contains the following items:

    • Start and Stop buttons

    • Game size control

    • Timer

    • Found and Attempts counters

    Sample App Buttons

  • The game grid

    Sample App Grid

JJ129410.collapse_all(en-us,VS.110).gifThe game logic

The game logic requires the following functions:

  • Timer

  • Game size

  • Number of attempts

  • Number of successful attempts

JJ129410.collapse_all(en-us,VS.110).gifDifferent game views

The game contains media queries to tailor the game layout to the display format of the device. For example, the layout has different configurations for portrait and landscape displays.

Sample App - Portrait

Notice that the header retains its position at the top of the app window but the button section is relocated between the header and the grid and the buttons are re-flowed to fit the horizontal button section.

The next step: Design your first Windows Store app (HTML).