Game 2D Features List
- Allow two players to compete against each other over the internet.
- Display a simple grid of initially empty cells.
- When two players have connected and one of them clicks the Start
button, the game begins.
- Randomly display dots in the cells at regular intervals.
The dots appear alternatingly in one of two colors, red and blue.
- Allow the player to adjust the interval at which dots are
displayed.
- Assign one of two colors to each player so that each player is
concerned with dots of only one color. That is, one player seeks to
click the mouse on the blue dots to make them disappear, while the
other player seeks to click on the red dots.
- Respond to mouse clicks. If either player clicks on a dot, the
dot disappears in response to that click. That is, even if a
player clicks on a dot that belongs to his or her opponent, the dot
disappears.
- Keep track of points (the score). Each time a player clicks
on a dot of his or her color, he or she earns a point.
- If two dots of the same color appear next to each other
(horizontally or vertially), the game ends. The player whose color
corresponds to the color of these dots is the loser of this game.
Notify each player who the loser is.