New User?   Join Now     Login            Forgot Password?    
BrainBoard in Silverlight  (24410 hits)
 Share this Article
 
Posted by Prabu Arumugam on Aug-12-2010
Languages: C#, Silverlight

What is BrainBoard?

BrainBoard is an addictive single-player board game for brain training. It is a modified version of classical Peg Solitaire game http://en.wikipedia.org/wiki/Peg_solitaire. This article explains the game concepts and also the programming concepts used during development of this game in Silverlight. Full source code is provided with this article.

A Java Mobile (J2ME) version of this game is available here, with source code.

The J2ME version of this game is available in GetJar and mobile9 websites also.

Disclaimer

This game is developed as a learning curve for Silverlight. The original name of the game is Peg Solitaire; it is also referred to as "Brainvita". This modified version is named differently in different regions. But BrainBoard is developed as a learning curve for Silverlight programming and full source code is released here.

The board layout of BrainBoard is much difficult to solve than the original board layout of Peg Solitaire. This makes this game very addictive. Also, it is not yet sure whether the number of pebbles can be reduced to less than two in the game.

If anybody can achieve one pebble at end of the game, please comment in this article.

BrainBoard vs Peg Solitaire

The original Peg Solitaire board uses 7x7 matrix and removes 2x2 matrix in all four corners. BrainBoard uses 9x9 matrix and removes 3x3 matrix in all four corners. BrainBoard contains 45 holes, whereas Peg Solitaire contains 33 holes. Before the game starts, the initial board of Peg Solitaire contains 32 pegs with an empty hole at the center, whereas BrainBoard game starts with 36 pebbles and 9 empty holes.

The following matrix illustrates the initial board layout of BrainBoard. 0 indicates empty hole.

   111
   111
   111
111000111
111000111
111000111
   111
   111
   111

The following matrix illustrates the initial board layout of classic Peg Solitaire.

  111  
  111
1111111
1110111
1111111
  111
  111

How to Play

The objective of the game is to remove as much pebbles/pegs as you can. You can remove a pebble by moving any of its nearby pebble to a nearby empty cell/hole. In other words, if you replace a pebble from its position to a nearby empty cell, the middle pebble is removed. For more information, see http://en.wikipedia.org/wiki/Peg_solitaire

BrainBoard Game (Live)

The source code of this game can be downloaded below.


 Downloads for this article
File Language Tools
BrainBoard-Silverlight-Source  68.45 kb  (52 downloads) C#, Silverlight 3 Visual Studio 2008

 Share this Article

 Comments on this Article
No comments on this article.
 Post your comment here
Your Name
Your Email
Comment
Post Comment

About      Terms      Contact