SVG Memory Game

Playing the game: Overview

This game requires a viewer that displays SVG graphics, such as the Adobe SVG Viewer

The objective of the game is to recall a sequence of four colors in order. The pattern may include red, yellow, green, and orange. They can include repeats, so not all colors are necessarily used.

After clicking the white button in the bottom right corner of the t.v., the combination is randomly selected and iterated with a small time delay. If the white button is clicked again, another pattern is selected. (There is no recall button.) Clicking on the color buttons increments the choice counter. Once four color buttons have been clicked, the choices are compared to the actual pattern.

The code for the game

Public Domain

The SVG source code listed below is released to the public domain. Read the Terms of Use for details. The contents of this page are still copyrighted.

Example HTML to include the SVG memory game

Example, given the SVG source is in the same directory in a file named tv.svg.

<embed name="svgtvgame" width="200" height="160" src="tv.svg" />

The SVG source code

Display in new window (better for viewing)
Select All (better for copying)
About this page: