BUILDING A CONCENTRATION GAME

Just recently I ran across the need to mock up a concentration game. You remember that card game...the one where you flip 2 cards at a time looking for a match. Anyway, this needed to work in DHTML so I had to figure out a way to hook this all together and make it flexible enough to add or remove pairs of cards with ease, in the event I changed my mind and wanted more cards in the game.

This sample application demonstrates this finished game. There are notes on page 2 of the book which will explain how it works and how you can modify it to add more cards.



DOWNLOAD CONCENTRATION.ZIP

  • You can examine how it works, by looking at all the Actions Editor code. You may find it useful to use the Tools menu to access the Dump Book Actions option in order to see all the code I wrote.

  • Export this ToolBook file to DHTML in order to see if function in a browser.

  • Download this 79K file   |   8.1    |   8.5/8.6    |   2004    |   9.0