Software Code Example - Game of Memory

Software code does not have to be modified much to adapt to touch screen technology. For most touch screens, the computer reads the inputs similar to that of mouse; reading the X and Y coordinates of the user's finger or stylus tip the same as the cursor of the mouse. When the user taps on the screen, it is read by the computer to be the same input as when the mouse is clicked.
Picture
Below is the code for the game of Memory written in C++ adapted to be used on a touch screen:

The code from our memory game for the presentation has temporarily been removed.  This game was used to show that the touch of a finger to the screen was transmitted to the computer the same as a mouse click and the coordinates can be used  while playing this game.