Arcade style match-N game with poker hands implementaion for Windows Phone devices.
Switch branches/tags
Nothing to show
Latest commit eff835c Nov 28, 2014 @tompaana tompaana Update
Failed to load latest commit information.

Match'em Poker XNA 1.1

Match'em Poker is a traditional match3 type of game with a twist: Instead of matching blocks of the same colour, the player is matching different poker hands. The game is a port from the Qt version which, in turn, is a port from the original iOS version.

Start view  Playing

When porting, the intent was to do so with minimal effort, reusing everything possible. The code is NOT originally written with C# nor for WP7.

For more information, see the wiki:


The game is played in a rectangular grid. The player can swap the position of any two cards. When a 'poker hand' is formed, it will disappear from the level and the player's score increases. A card will drop down if there is an empty space below it. New cards will appear in empty spaces in the first row. The level starts with a timer value of 40. This number decreases with time, and increases when the player scores. The level is completed when the timer reaches a value of 100. If the timer drops to zero, the game is over.

Accepted 'hands' are:

  • 4 or more of the same color
  • 3 or more of the same number
  • a straight of 4 or more

Accepted 'hands' are: 4 or more of the same colour, 3 or more of the same number, a straight of 4 or more. The hands can appear either horizontally or vertically. The difficulty increases when the player reaches higher levels. The time spent will affect the timer more and more, and destroyed cards will increase the timer less and less. Theoretically the game can continue forever. In practice, it will get very difficult around level 20.

There are increasing numbers of empty cards in the levels. An empty card will not be accepted to be a part of a hand until it's opened (by clicking it). When an empty card is opened, a small amount of time is removed from the timer (as a payment).


  • C# intermediate
  • Development environment 'Microsoft Visual Studio 2010 Express for Windows Phone'


Getting Started Guide:

Learn About Windows Phone 7 Development:

App Hub, develop for Windows Phone:

Game Development:


source files:

  • Game1.cs: A main application class for the game
  • TileInterfaces: Interfaces for game and engine, some commonly used enumerations
  • ParticleEngine.cs: Consists of three classes; Particle, ParticleSpray, and ParticleEngine. Simulates particles and handles drawing them on the screen.
  • npclevel.h: The match-grid-game part of the application
  • tilenpc.h: Implementation of interface ITileGame. The platform-independent main game. TileGameRendererXNA.cs: XNA implementation of an ITileRenderer interface which works as the engine for the framework. Rendering is implemented using XNA's SpriteBatch object.





Make sure you have the following installed:

Build on Microsoft Visual Studio

  1. Open the SLN file: File > Open Project, select the file XNAPuzzlePoker.sln.
  2. Select the 'Windows Phone 7 Emulator' target.
  3. Press F5 to build the project and run it on the Windows Phone Emulator.

Deploy to Windows Phone 7


  1. Register in the App Hub to get a Windows Live ID:
  2. Install Zune for Windows Phone 7:
  3. Register your device in your Windows Live account. Select from Windows: Start > Windows Phone Developer Tools > Windows Phone Developer Registration


  1. Open the SLN file: File > Open Project, select XNAPuzzlePoker.sln file.
  2. Connect the device to Windows via USB.
  3. Select the 'Windows Phone 7 Device' target.
  4. Press F5 to build the project and run it on your Windows device.


  • Windows Phone 7
  • XNA Game Studio 4.0

Tested on:

  • Nokia Lumia 800
  • HTC 7 Mozart
  • Samsung Omnia 7

Developed with:

  • Microsoft Visual Studio 2010 Express for Windows Phone


  • 1.1 Code style and convention fixes
  • 1.0 The first non-beta version
  • 0.9 Release candidate 1