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
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" />