It is integrated in this post and you can play it right here in the browser.
This sample was also published on Fable's official sample site where you can find more information on the implementation details.
SameGame is a single player game. It is played on a two-dimensional board filled with stones of different colors.
The player may remove groups of stones from the board.
A group of stones is defined by two or more orthogonally connected identical-colored stones.
After a group is removed, all the stones above will fall down.
If a column is cleared completely, the columns to the right will slide to the left to close the gap.
The game ends when the board is either empty or the remaining stones cannot be removed.
Removing a group of stones will result in a score of points.
If all stones are removed from the board, the player will receive a bonus of 1000 points.
If the game ends without clearing the board, the player will receive a penalty. The penalty is computed according to where is the number of stones left on the board.
The complete code is available on GitHub.