05 March 2009
Solitaire for Nokia 5800
A Classic of the Card Games
Touch enabled version of Solitaire for S60 platform is developed as an example application that demonstrates a fully touch optimized application using various touch UI features of S60 5th Edition with direct manipulation.
Besides tapping the cards, the user can drag and drop them using a finger or the stylus.
Touch Solitaire is the port of an old classic card game, specially optimized for touchscreen devices to help you to focus on the game, not on the control. Solitaire card game was included in early Windows operation system to help users to practice with mouse. Thanks to the Microsoft, game became very popular and was ported to almost every platform in the world and no is available for the latest edition of the S60 platform as well.
The games are generally referred to as "patience" in British English and "solitaire" in American English. The term solitaire is also used for single-player games of concentration and skill using a set layout of tiles, pegs or stones rather than cards. These games include Peg solitaire and Shanghai solitaire.
These games typically involve dealing cards from a shuffled deck into a prescribed arrangement on a tabletop, from which the player attempts to reorder the deck by suit and rank through a series of moves transferring cards from one place to another under prescribed restrictions. Some games allow for the reshuffling of the deck(s), and/or the placement of cards into new or "empty" locations.
The application demonstrates handling pointer events of custom made UI controls. Also, tactile feedback using the Touch Feedback API is received. Double buffering is used to draw on the screen to avoid flickering.
By default, the cards are implemented as Scalable Vector Graphics (SVG) icons, but the example also provides an option to draw them using methods of the graphics context class CWindowGc. In the updated version, major drawing optimisation has been done.

|