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 the game in J2ME. You can download the full sourcecode of this game below.
A Silverlight version of this game is available here, with source code and live playable demo.
Disclaimer
This game is developed as a learning curve for J2ME. 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 J2ME programming and full source code is released here. This game is released in the following websites also.
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 Screenshots
|
|
Main Menu |
Board Layout |
|
|
Last Move |
Highscores |
(These screenshots were taken in J2ME Wireless Toolkit 2.2)
Downloads for this article
File |
Language |
Tools |
BrainBoard-J2ME-Source 6.98 kb (81 downloads) |
J2ME |
J2ME WTK 2.2 |
BrainBoard.jar 7.29 kb (54 downloads) |
|
|