About Connect 4 Game
Connect Four is a two-player board game in which the players take turns in dropping alternating colored discs into a seven-column, six-row vertically-suspended grid. The object of the game is to connect four singly-colored discs in a row -- vertically, horizontally, or diagonally -- before your opponent can do likewise. (Source: Wikipedia)
As shown on the figure bellow the player creates consucative four blocks of discs wins the game.
Figure: Diagonal Win in Connect 4
The game is ideal to be implemented in message based protocol like SMS. We have used distributed state exchange approch to compute the actual state of the game. Users can play the game and as soon as th users makes a move the program calulates the state of the game and notifies the users and then the move will be transported to the remote user to update the game state.
|